Re: Portable shell scripts
On Wed, Nov 12, 2003 at 09:24:04AM +0800, csj wrote:
> I tend to write scripts which are tcsh-compatible. So
> "#!/bin/tcsh".
Wow. You're mad. Sorry :) The C shell is too broken for serious
scripting.
> But its somewhat a waste of effort to write one set of scripts for
> bash and another for tcsh.
I don't understand. Why would you need to write two sets of scripts?
> My main problem is handling the variables. Is there a shell-portable
> way to specify variables?
Not if you want them exported to subprocesses, no.
Cheers,
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: