3 ms·
I remember reading some rant about how Unix sucks because of the shell's filename expansion, because programs can't tell whether you wrote a star or actually ju
by trealira 2y ago
I remember reading some rant about how Unix sucks because of the shell's filename expansion, because programs can't tell whether you wrote a star or actually just all the files in the directory. If programs could tell the difference, then you could get the desired renaming behavior from mv like this:
mv *.m *.c
They suggested that this filename expansion should be in the C standard library, not the shell.
Going further, as part of shell expansion, expanding the tilde could also be useful for filename expansion in the standard library.