Re: Is there a super shell that can recognize and interpret commands from all other shells?
From: Bruce Barnett (spamhater91+U040405230524_at_grymoire.com)
Date: 04/06/04
- Previous message: Voyager: "Re: How do I do this?"
- In reply to: Kenneth Wong: "Is there a super shell that can recognize and interpret commands from all other shells?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 6 Apr 2004 03:11:03 GMT
Kenneth Wong <cs9e-1av@solar.CS.Berkeley.EDU> writes:
> I'm currently taking a Unix course and am learning to use the tcsh
> shell. However my book does not differentiate between commands for
> different shells. Is there a shell out there that can take command
> arguments in any form existing in any shell?
The bare basic commands are portable
echo "my directory is `pwd`
cat a b | grep abc | sort >file
But as soon as you use a variable, shells differ.
CSH: set a = 1
SH: a=1
My suggestion - learn the Bourne Shell.
It will effective work for Bourne, Bash, Korn and other shells
because most shells are a super-set of the Bourne Shell.
DON'T use CSH/TCSH for scripting. See
http://www.grymoire.com/Unix/CshTop10.txt
-- Sending unsolicited commercial e-mail to this account incurs a fee of $500 per message, and acknowledges the legality of this contract.
- Previous message: Voyager: "Re: How do I do this?"
- In reply to: Kenneth Wong: "Is there a super shell that can recognize and interpret commands from all other shells?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|