claytondukes/aspersa

Tools might break on $0

Closed this issue · 1 comments

Some tools have code like this:

if [ $(basename "$0") = "diskstats" ] || [ $(basename "$0") = "bash" -a "$_" = 
"$0" ]; then
    main $@
fi

That will break if basename $0 has anything funny in it, so that needs to be 
quoted.

Original issue reported on code.google.com by baron.schwartz on 22 Feb 2011 at 1:54

This issue was closed by revision r370.

Original comment by baron.schwartz on 22 Feb 2011 at 1:58

  • Changed state: Fixed