Unix: Can shell variable name include a hyphen or dash (-)?

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



Duration: 5:34
4 views
0


Can shell variable name include a hyphen or dash (-)?
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/10968/xyz)xyz
(unix.stackexchange.com/users/885/gilles-so-stop-being-evil)Gilles 'SO- stop being evil'
(unix.stackexchange.com/users/5790/jon-nalley)Jon Nalley
(unix.stackexchange.com/users/8250/lekensteyn)Lekensteyn
(unix.stackexchange.com/users/37242/brian-j-fox)Brian J. Fox
(unix.stackexchange.com/users/1925/caleb)Caleb
A special thanks goes out to the (https://unix.stackexchange.com/questions/23659/can-shell-variable-name-include-a-hyphen-or-dash)Stackexchange community

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

environment-variables shell







Tags:
environment-variables
shell