I am setting an environment variable – say ABC – in C shell in SuSe Linux.
My question, are there any difference in following 2 commands?
$setenv ABC "1"$setenv ABC 1
In both the cases echo gave me the same result.
i.e
$echo $ABC
1
For me, it looks to be both are same. But I wanted a confirmation to proceed.
No, there are no differences for your example. But
cshis rightly considered harmful, so forget about it. Usebashorzshinstead.My personal preference is to use Posix
/bin/shor else/bin/bashfor scripts, andzshas my interactive login shell