How do I do this:
set foo bar baz
unset # Something else here
echo $# # Should ouput 0
By doing set ""
, $#
will still be 1 and not 0.
parametershell
How do I do this:
set foo bar baz
unset # Something else here
echo $# # Should ouput 0
By doing set ""
, $#
will still be 1 and not 0.
Best Answer
Ok this was just stupid, and I found out using
set --
will work.