Issue
Code backup
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
String='pippo' # Zero-length ("null") string variable.
|
||||
|
||||
if [ -z "$String" ]
|
||||
then
|
||||
echo "\$String is null."
|
||||
else
|
||||
echo "\$String is NOT null."
|
||||
fi # $String is null.
|
||||
Reference in New Issue
Block a user