ram is unset or null, and $param otherwise.
To use negative offsets that begin with a minus sign, se...
#!/bin/bash
# quickly convert html filenames for use on a dossy system
# only handles file extensions,... t only for existence of the variable. This will cause the creation of a variable in the case of ${foo=b... a handy mnemonic device: # matches the front because number signs precede numbers; % matches the rear
Still, it is better to quote it ("$string1"), because . . .
string1="a = b"
if [ $string1 ] # ... se condition. So, why "true" output?
# Is it because both condition clauses within brackets evaluate?