Mailinglist Archive: opensuse-programming (84 mails)
| < Previous | Next > |
Minor tcsh problem (undefined variable message).. .
- From: dries <dries@xxxxxxxxxxxxx>
- Date: Wed, 11 Aug 2004 08:24:19 -0700
- Message-id: <200408110824.20027.dries@xxxxxxxxxxxxx>
Hello all,, ,
I've made tcsh script that uses a environment variable that can be defined or
not, the script works, but if the variable is not defined i get the message
'carrotcount: Undefined variable.'
from the example script below . . .
#!/usr/bin/tcsh
echo $carrotcount
My question is : is there a way to suppress the 'undefined variable' message
or can i check wether it is defined (in a tcsh script) . .
Grtz Dries Pruimboom
--
01110111 01110111 01110111 00101110 01110000 01110010
01110101 01101001 01101101 01100010 01101111 01101111
01101101 00101110 01110100 01101011 <End of message>
I've made tcsh script that uses a environment variable that can be defined or
not, the script works, but if the variable is not defined i get the message
'carrotcount: Undefined variable.'
from the example script below . . .
#!/usr/bin/tcsh
echo $carrotcount
My question is : is there a way to suppress the 'undefined variable' message
or can i check wether it is defined (in a tcsh script) . .
Grtz Dries Pruimboom
--
01110111 01110111 01110111 00101110 01110000 01110010
01110101 01101001 01101101 01100010 01101111 01101111
01101101 00101110 01110100 01101011 <End of message>
| < Previous | Next > |