Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

script file

1 view
Skip to first unread message

Giulio Ballardin

unread,
Dec 14, 1999, 3:00:00 AM12/14/99
to
[Nota del moderatore: impostato followup su it.comp.os.unix. La prossima
volta scrivi in Italiano, grazie.]

Hi,

I want create a script file that sets a variable.
I'm using the tcsh shell. I created this file:

#!/bin/tcsh
setenv GIULIO ggg


but after I called this file, if I see $GIULIO by
$ echo $GIULIO
the shell write me

$GIULIO: undefined variable

Why?

If a write

$ setenv GIULIO ggg
$ echo %GIULIO
ggg

so it runs at the prompt!

Thank you
Giulio Ballardin


0 new messages