query: In bash, why does the if [ -n ] test return true for an empty string?
positive_passages.docid: 23849
positive_passages.text: Test condition in if command
negative_passages.docid: 5374
negative_passages.text: How to check if a macro value is empty or will not create text with plain TeX conditionals?
negative_passages.docid: 11046
negative_passages.text: Bash semicolon being equal to newline is not exactly true?
negative_passages.docid: 146486
negative_passages.text: Why isn't [ -n ] false like [ -n "" ]?
negative_passages.docid: 8651
negative_passages.text: Bash scripting unexpected operator
negative_passages.docid: 98451
negative_passages.text: Why can't I echo the characters #! in a string in bash?
negative_passages.docid: 106258
negative_passages.text: What is the reason that an empty string evaluates to false in Javascript
negative_passages.docid: 33574
negative_passages.text: Comparing a string with the empty string (Java)
negative_passages.docid: 21247
negative_passages.text: Why does `find` in Linux skip expected results when `-o` is used?
negative_passages.docid: 154049
negative_passages.text: why does if("string") evaluate "string" as true but if ("string"==true) does not?
negative_passages.docid: 977
negative_passages.text: What is the difference between [@] and [*] when referencing bash array values?
negative_passages.docid: 43775
negative_passages.text: Checking the success of a command in a bash `if [ .. ]` statement
negative_passages.docid: 86719
negative_passages.text: How to check if file is empty or it has only blank characters?
negative_passages.docid: 91449
negative_passages.text: Understanding Bash's Read-a-File Command Substitution
negative_passages.docid: 128045
negative_passages.text: Why does this script print an extraneous 'none' in the output
negative_passages.docid: 153555
negative_passages.text: Why does bash "echo [t]" result in "t" not "[t]"
negative_passages.docid: 64769
negative_passages.text: What is the difference between \empty and \@empty?