Re: Portable shell scripts

2003-11-12 Thread David Z Maze
csj <[EMAIL PROTECTED]> writes: > I tend to write scripts which are tcsh-compatible. So > "#!/bin/tcsh". But its somewhat a waste of effort to write one > set of scripts for bash and another for tcsh. My main problem is > handling the variables. Is there a shell-portable way to specify > varia

Re: Portable shell scripts

2003-11-12 Thread Colin Watson
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 tcs

Re: Portable shell scripts

2003-11-12 Thread csj
On Mon, 10 Nov 2003 23:18:56 -0700, Bob Proulx wrote: > > csj wrote: > > Is there a way to write portable shell scripts. In > > particular, I've problems with built-ins setenv (tcsh) and > > export (bash). How do I define variables in tcsh and have > > them

Re: Portable shell scripts

2003-11-10 Thread Bob Proulx
csj wrote: > Is there a way to write portable shell scripts. In particular, > I've problems with built-ins setenv (tcsh) and export (bash). > How do I define variables in tcsh and have them usable in bash > too? Your best option is "#!/bin/sh" at the top of all of

Re: Portable shell scripts

2003-11-10 Thread Colin Watson
On Mon, Nov 10, 2003 at 07:15:56AM +0800, csj wrote: > Is there a way to write portable shell scripts. In particular, > I've problems with built-ins setenv (tcsh) and export (bash). > How do I define variables in tcsh and have them usable in bash > too? I don't believe

Portable shell scripts

2003-11-10 Thread csj
Is there a way to write portable shell scripts. In particular, I've problems with built-ins setenv (tcsh) and export (bash). How do I define variables in tcsh and have them usable in bash too? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". T