|
|
|
|
|
by stutonk
2216 days ago
|
|
By your own logic, your own UNIX solution to the file renaming problem is "not shell" since it uses the mv "utility". Or do you mean rename is not POSIX? The shell language certainly is lacking for almost anything beyond its original purpose of gluing together pipelines/graphs of UNIX commands; it's a largely unintentional DSL from the time before many modern notions of language ergonomics had become established. The point is, there is an array of solutions to reduce the nuisance of having to deal with the language equivalent of a stone knife such as programs like rename or actual general-purpose scripting languages. Sure, you can cut most things with a stone knife with enough time and effort but why would you if you have a bunch of sharp, metal knives within easy reach? |
|
https://pubs.opengroup.org/onlinepubs/009695399/functions/re...
mv is basically just a shim over rename so I don't see your point.
Shell may be to glue things together but it's supposed to also be a decent language for doing file/filename related things.