Search Results

Search: Posts Made By: andy202
14,659
Posted By andy202
With the speach marks the problem is solved -...
With the speach marks the problem is solved - thanks everybody!!
14,659
Posted By andy202
Actually - if i set VAR1=1 (or a value) then it...
Actually - if i set VAR1=1 (or a value) then it keeps going inside the if statement
14,659
Posted By andy202
I have tried if [ x"$VAR1"==X ] and it works -...
I have tried if [ x"$VAR1"==X ] and it works - thanks.

I have no idea why -z did'nt work though
14,659
Posted By andy202
test: argument expected
Can someone help me with a very simple query

I have the following script:
#!/bin/sh
VAR1=""
if [ -z $VAR1 ]
then
VAR1="Message"
fi

echo $VAR1

put when i run it i get the...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy