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.
set ""
$#
Ok this was just stupid, and I found out using set -- will work.
set --
set -
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the privacy policy and terms of service.
tagged
asked
1 year ago
viewed
158 times
active