https://bugzilla.redhat.com/show_bug.cgi?id=1247328
--- Comment #5 from Pranav Kant pranav913@gmail.com --- (In reply to Zbigniew Jędrzejewski-Szmek from comment #1)
This is an accident waiting to happen. Proper quoting is required around $@.
Makes sense.
[ $1 ] will go wrong if options are given on the command line.
I don't really get this. Maybe you meant :
"options are *not* given on the command line" ?
But then again, I don't get how it can go wrong. I want the else part to get executed when there are no command line options, and it does execute fine for me. Could you please explain this ?