Rename a file: Difference between revisions

Content deleted Content added
m →‎{{header|Scala}}: typo Straight
Kazinator (talk | contribs)
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}}==