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

  • Next message: Jon A. Solworth: "Re: National security backdoor."
    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.
    

  • Next message: Jon A. Solworth: "Re: National security backdoor."

    Relevant Pages

    • Re: Redirection issue
      ... 1- execute input commands from standard input, ... code to implement the redirection it does not work anymore. ... And it's not good shell behavior to echo commands anyway. ...
      (comp.lang.c)
    • Re: Redirection issue
      ... 1- execute input commands from standard input, ... the phrase "it does not work anymore" carries very little meaning. ... after compilation and execution of the shell with a simple command like ...
      (comp.lang.c)
    • vulnerabilities in scponly
      ... without allowing shell access. ... scponly makes no effort to verify the path to the scp or sftp-server ... arbitrary commands by simply uploading a file. ... However, if this is *NOT* the case, the user could execute arbitrary ...
      (Bugtraq)
    • Re: Redirection issue
      ... 1- execute input commands from standard input, ... "does not work" could be anything from not compiling, not executing, ... after compilation and execution of the shell with a simple command like ...
      (comp.lang.c)
    • Re: PYTHONPATH
      ... The error indicates the shell tried to execute a program named '1' and couldn't find one. ... Arthimetic expressions generally have to be wrapped in ) in bash: ... non-interactive shell with the --login option, it first reads and executes ... commands from the file /etc/profile, ...
      (comp.lang.python)