Article View: comp.unix.shell
Article #220function with cshell script
From: Mary Lei
Date: Thu, 30 Jul 1992 22:34
Date: Thu, 30 Jul 1992 22:34
21 lines
817 bytes
817 bytes
Does any one have an example of how to define a function within a cshell script, like in this borne shell example:
#! /bin/sh
clean_up()
{
[ -f $$ftp.script ] && rm -f $$ftp.script
[ -f $$msg ] && rm -f $$msg
echo ""
echo "Please select the \"CONTINUE\" button to continue!"
cd $opwd
}
#main line
clean_up
...
_____________________________
Please email me mlei@gina
Thanks.
I am running under SUN OS 4.1.1
Technical Details
Message-ID:
<1992Jul30.223420.20253@jato.jpl.nasa.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!jato!mona!mleiShow Full Headers
Complete Article Headers
Newsgroups: comp.unix.shell Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!jato!mona!mlei From: mlei@mona.jpl.nasa.gov (Mary Lei) Subject: function with cshell script Message-ID: <1992Jul30.223420.20253@jato.jpl.nasa.gov> Sender: nobody@jato.jpl.nasa.gov Nntp-Posting-Host: mona.jpl.nasa.gov Organization: jpl Distribution: JPL Date: Thu, 30 Jul 1992 22:34:20 GMT Lines: 21