Empty variable is treated as logical "true" with `$var && action` (shell parsing)
Empty variable is treated as logical "true" with `$var && action` (shell parsing)
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/100397/roaima)roaima |
(unix.stackexchange.com/users/22565/st%c3%a9phane-chazelas)Stéphane Chazelas |
(unix.stackexchange.com/users/4667/glenn-jackman)glenn jackman |
(unix.stackexchange.com/users/4530/william-pursell)William Pursell |
(unix.stackexchange.com/users/170373/ilkkachu)ilkkachu |
A special thanks goes out to the (https://unix.stackexchange.com/questions/720829/empty-variable-is-treated-as-logical-true-with-var-action-shell-parsing)Stackexchange community |
I wish you all a wonderful day! Stay safe :)