Path: 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 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!!!!