Difference between revisions of "-z"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <code>[ -z $1 ] && { [[usage]]; }</code> | + | |
+ | <nowiki>[[ -z $1 ]] && { [[usage]]; }</nowiki> | ||
+ | <code>[ -z $1 ] && { [[usage]]; }</code> | ||
== Related == | == Related == | ||
function [[usage]]() { | function [[usage]]() { | ||
− | echo "Usage: | + | echo "Usage: $(basename $0) Explain options here" |
[[exit 0]] | [[exit 0]] | ||
} | } | ||
Line 10: | Line 12: | ||
* [[If]] | * [[If]] | ||
+ | * [[binary operator expected]] | ||
+ | * [[Square bracket]] | ||
+ | * [[Single bracket]] | ||
+ | * [[Double bracket]] | ||
== See also == | == See also == |
Latest revision as of 10:28, 3 September 2022
Advertising: