4 ms·
That's your shell rather than the OS. I've been writing my own Linux $SHELL and one of the features is that asterisks don't get expanded by the shell to avoid
by laumars 9y ago
That's your shell rather than the OS.
I've been writing my own Linux $SHELL and one of the features is that asterisks don't get expanded by the shell to avoid accidental bugs from the situations you described.
- majewsky 9y agoHow would you invoke something like `rm * .bak` in such a shell? Do you have a separate command for globbing, such as: rm $(glob *.bak)
- laumars 9y agoYeah pretty much just that: rm @{g *.bak} `g` returns a JSON array of file names and the @{} tells the shell to expand the array into parameters. This way you don't need to worry about spaces in file names or other problems with escaping.