Timeline for How can I declare and use Boolean variables in a shell script?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 23, 2019 at 12:04 | history | edited | Peter Mortensen | CC BY-SA 4.0 |
Active reading [<https://en.wiktionary.org/wiki/Boolean#Noun> <http://en.wikipedia.org/wiki/Bash_%28Unix_shell%29>].
|
May 23, 2017 at 12:34 | history | edited | URL Rewriter Bot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Mar 2, 2016 at 9:43 | comment | added | jarno |
@dolmen [ and test is also a Bash SHELL BUILTIN COMMAND according to Bash manual page, so there should not be an issue in performance. Same thing with e.g. Dash. (/bin/sh may just a symlink to /bin/dash). To use the executable you have to use full path i.e. /usr/bin/\[ .
|
|
Aug 19, 2013 at 14:08 | history | edited | Hbar | CC BY-SA 3.0 |
incorporated dolmen's point
|
May 13, 2013 at 12:49 | comment | added | dolmen |
[ is not just an alias inside bash . This alias also exists as a binary file (or as a link pointing to) and can be used with the bare sh . Check ls -l /usr/bin/\[ . With bash /zsh you should instead use [[ that is a true pure internal and is much more powerful.
|
|
Apr 10, 2013 at 20:39 | review | First posts | |||
Apr 10, 2013 at 20:40 | |||||
Apr 10, 2013 at 20:23 | history | answered | Hbar | CC BY-SA 3.0 |