goldenradium2001
Technical User
I have a file called hello with nothing in it. I created it using the following command:
# touch hello
When I do in the C shell:
# test -z hello
# echo $status
I get a nonzero status of 1. I thought that the -z was used to test if the hello file had anything in it. The definition I've always seen was that the -z means to test if the file is zero length. There is nothing in the hello file. So why does it give me a 1 exit status?
Please help!
Thanks in advance.
# touch hello
When I do in the C shell:
# test -z hello
# echo $status
I get a nonzero status of 1. I thought that the -z was used to test if the hello file had anything in it. The definition I've always seen was that the -z means to test if the file is zero length. There is nothing in the hello file. So why does it give me a 1 exit status?
Please help!
Thanks in advance.