Article View: comp.unix.shell
Article #1697csh commands within csh scripts
From: Eric Magnusson
Date: Fri, 02 Nov 1990 15:37
Date: Fri, 02 Nov 1990 15:37
27 lines
1101 bytes
1101 bytes
I am having difficulty "alias"ing within a shell script. When I execute the following script file (foo) I obtain the following error. /bin/csh is my login shell. /****** foo ******/ alias qqq ls /****** error ******/ /bin/sh: alias: not found I then revised the script to be the following to use the c-shell. /****** bar ******/ #!/bin/csh -f alias qqq ls The script executes fine, but the alias command does not seem to be passed back to the parent shell. How can I execute csh commands (like source and alias) within a shell script? -- Eric Magnusson ejmag@aplcen.apl.jhu.edu I was Bourne, Bourne, Bourne .... Bourne to be alive!!!!
Technical Details
Message-ID:
<1990Nov2.153704.16636@aplcen.apl.jhu.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!ejmagShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!ejmag From: ejmag@aplcen.apl.jhu.edu (Eric Magnusson) Newsgroups: comp.unix.shell Subject: csh commands within csh scripts Message-ID: <1990Nov2.153704.16636@aplcen.apl.jhu.edu> Date: 2 Nov 90 15:37:04 GMT Reply-To: ejmag@aplcen (Eric Magnusson) Distribution: na Organization: Johns Hopkins University Lines: 27