3 ms·
Still sounds like a bug in bash to me. What if I have a printer called "() { :;}; echo lol", so I manually export PRINTER="() { :;}; echo lol" (see http://www.
by 0x0 12y ago
Still sounds like a bug in bash to me.
What if I have a printer called "() { :;}; echo lol", so I manually export PRINTER="() { :;}; echo lol" (see http://www.tldp.org/HOWTO/Printing-Usage-HOWTO-4.html http://www.tldp.org/HOWTO/Printing-Usage-HOWTO-4.html)
I don't think this was the intended behavior even 25 years ago. :)
- xioxox 12y agoThe saner way to implement this bash feature would be to have a single environment variable containing inherited shell functions. A special prefix is an alternative, but a bit harder to filter.