home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.3b1
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!convex!news.utdallas.edu!corpgate!brtph560!brtph380!hruska
- From: hruska@bnr.ca (Bob Hruska)
- Subject: tcsh question
- Message-ID: <1992Jul29.141150.28545@brtph560.bnr.ca>
- Originator: hruska@brtph380
- Sender: news@brtph560.bnr.ca (Usenet News)
- Organization: BNR, Inc. Research Triangle Park, NC
- Date: Wed, 29 Jul 1992 14:11:50 GMT
- Lines: 29
-
- I am using tcsh on my 7300, it is the following version:
-
- version tcsh 6.01.00 (Cornell) 12/19/91 options 8b,dl,al,dir
-
- I did not compile it, I ftp'd the binary. I don't have a dev set.
- My question is, why can't I run any /bin/sh scripts from it?
- If I put the #!/bin/sh at the beginning, it doesn't work.
- Here is an example:
-
- #!/bin/sh
-
- if [ `tty` = /dev/syscon ]
- then
- sysinfo
- fi
-
-
-
- If I do "sh scriptname" it works, but just "scriptname" gives
- me "if: Expression Syntax."
-
- Any ideas?
-
- --
- ------------------------------------------------------------------------------
- | Bob Hruska DoD #1982 | email: hruska@bnr.ca |
- | BNR Inc. - XPM Base Software |USmail: 35 Davis Drive |
- | RTP North Carolina | Research Triangle Park, NC 27709 |
- ------------------------------------------------------------------------------
-