guoyu07 / aspersa

Automatically exported from code.google.com/p/aspersa
0 stars 0 forks source link

Tools might break on $0 #110

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r370.

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