home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!das-news.harvard.edu!husc-news.harvard.edu!husc3!huang2
- From: huang2@husc8.harvard.edu (Howard Huang)
- Newsgroups: comp.unix.questions
- Subject: Re: sh, tcsh, and alias differences
- Message-ID: <HUANG2.92Sep13093818@husc8.harvard.edu>
- Date: 13 Sep 92 16:38:18 GMT
- Article-I.D.: husc8.HUANG2.92Sep13093818
- References: <5313@blue.cis.pitt.edu.UUCP>
- Organization: Harvard Arts and Sciences Computer Services, Cambridge, MA
- Lines: 22
- Nntp-Posting-Host: husc8.harvard.edu
- In-reply-to: djbpitt+@pitt.edu's message of 30 Aug 92 19:35:25 GMT
-
- djbpitt+@pitt.edu (David J Birnbaum) writes:
-
- "( expunge -r -i -l -s -y -m -v \* > /dev/tty ) > & /dev/null"
-
- but when I try it as a shell script I get a "not found" message. I've
- tried different types of quotes and escapes - to no avail. Some varia-
- tions object to the ampersand; others to /dev/null. Yes, the script is
- executable, yes, it's in my path, yes, I removed the original purge from
- my bin, and yes, I rehashed.
-
- If you get a bad number error from /dev/null, it's because Bourne
- shell is attempting to execute your csh program. To be safe add the
- line #!/bin/csh as the first line of your script.
-
- You probably get "not found" because you're escaping the asterisk.
- Your program is actually trying to remove a file named '*'. To make
- the asterisk act as a wildcard, remove the backslash.
-
- Hope I caught your problem.
- --
- Howard C. Huang
- hhuang@teton.mitre.org
-