Re:Unix Wildcards Gone Wild
by jingo on Monday August 18, 2014 @01:28AM
(#8191526)
I keep forgetting that GNU echo has an -e option, which, if I'm not mistaken, makes it behave like printf. (Why does it need this feature when there also exists a builtin printf? Nevermind.)
Anyway, I didn't think about what happens if you create one file called "-e" and then do
echo *
Anyway, as someone else pointed out, using ./* instead of * will defeat the "exploits" in the article.
Anyway, I didn't think about what happens if you create one file called "-e" and then do
Anyway, as someone else pointed out, using ./* instead of * will defeat the "exploits" in the article.