4 ms·
nope. try it: set HOME; echo $HOME. on IRIX, $HOME for root is almost certainly root. So the resulting command is rm -rf /
by hapless 13y ago
nope. try it: set HOME; echo $HOME.
on IRIX, $HOME for root is almost certainly root.
So the resulting command is rm -rf /
- dllthomas 13y agoI missed that set HOME doesn't set HOME (I was pre-coffee). What I said about un-magic-ing is true for sure. "HOME=foo; echo $HOME" will print "foo". Interestingly, it's propagated. "HOME=foo sh -c 'echo $HOME'" will also print "foo".