What does a hyphen do next to the argument position in bash shell script? Like ${1-}

Subscribers:
4,120
Published on ● Video Link: https://www.youtube.com/watch?v=OrOWNTEeQtw



Duration: 1:45
0 views
0


What does a hyphen do next to the argument position in bash shell script? Like ${1-}
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(unix.stackexchange.com/users/489413/xtropicalsoothing)xtropicalsoothing |
(unix.stackexchange.com/users/86440/stephen-kitt)Stephen Kitt |
A special thanks goes out to the (https://unix.stackexchange.com/questions/735029/what-does-a-hyphen-do-next-to-the-argument-position-in-bash-shell-script-like)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

arguments options shell shell-script bash







Tags:
arguments
options
shell
shell-script
bash