in reply to Re^2: Need help to convert short c shell script to perl
in thread Need help to convert short c shell script to perl
Very unlikely to be the OP's input format. You're assuming sh syntax, whereas the OP's code is csh syntax, and hence his script would more be like
setenv InVAR0 42 setenv InVAR1 24
and that would be easy to parse, but what if it was
set foo=`foo` setenv bar "$foo":$PATH":"`cat /etc/PATH`
or even worse
set foo=`ttytype` eval $foo
Enjoy the puzzle
BTW I am a tcsh user myself, but I fully agree with TomC that csh/tcsh is not something to script in. Ever!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Need help to convert short c shell script to perl
by blue_cowdawg (Monsignor) on Sep 25, 2007 at 15:49 UTC | |
by cdarke (Prior) on Sep 27, 2007 at 09:43 UTC | |
by blue_cowdawg (Monsignor) on Sep 27, 2007 at 13:52 UTC |