Skip to main content

Timeline for Shift bash arguments from the right

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Apr 1, 2016 at 1:15 history edited user79743 CC BY-SA 3.0
Solve a nul value in $@.
Apr 1, 2016 at 1:15 comment added user79743 @Wildcard And indeed you are right. Thanks for reminding me of this. The command printf '<%s>' "$@" will print <><0wer><1wdfg><2erty><333><4ffff>. Solution? ... Maybe that is why I unset the variable b. Read the edited answer.
Apr 1, 2016 at 0:58 comment added Wildcard That last loop is not correct; it results in a zero-length argument being set as the first parameter. E.g. run with the parameters "1" "2" "3" it results in the parameters being set as "" "1" "2".
Apr 1, 2016 at 0:48 vote accept dimo414
Apr 1, 2016 at 0:40 vote accept dimo414
Apr 1, 2016 at 0:45
Apr 1, 2016 at 0:30 history answered user79743 CC BY-SA 3.0