Rename a file: Difference between revisions

m (→‎{{header|Scala}}: typo Straight)
Line 998:
ERROR/STOP RENAME ("docs","mydocs",-std-)
</lang>
 
=={{header|TXR}}==
 
TXR works with native paths.
 
<lang txr>@(do (rename-path "input.txt" "output.txt")
;; Windows
(rename-path "C:\\input.txt "C:\\output.txt")
;; Unix
(rename-path "/input.txt" "/output.txt"))</lang>
 
Directories are renamed the same way; <code>input.txt</code> could be a directory.
 
=={{header|UNIX Shell}}==
543

edits