DEV Community

Discussion on: Forward arguments in shell

Collapse
 
ferricoxide profile image
Thomas H Jones II

Heh... if you're someone that implements flag/args in bash, you're familiar with shift because it's how you parse getopt strings.

Collapse
 
sleeplessbyte profile image
Derk-Jan Karrenbeld

Absolutely! But when I needed to do this, I did not have that knowledge yet. Only needed to drop an argument and pass it on to the next binary :).

Shift is great