home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / 3b1 / 2963 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.3 KB  |  41 lines

  1. Newsgroups: comp.sys.3b1
  2. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!convex!news.utdallas.edu!corpgate!brtph560!brtph380!hruska
  3. From: hruska@bnr.ca (Bob Hruska)
  4. Subject: tcsh question
  5. Message-ID: <1992Jul29.141150.28545@brtph560.bnr.ca>
  6. Originator: hruska@brtph380
  7. Sender: news@brtph560.bnr.ca (Usenet News)
  8. Organization: BNR, Inc. Research Triangle Park, NC
  9. Date: Wed, 29 Jul 1992 14:11:50 GMT
  10. Lines: 29
  11.  
  12. I am using tcsh on my 7300, it is the following version:
  13.  
  14. version tcsh 6.01.00 (Cornell) 12/19/91 options 8b,dl,al,dir
  15.  
  16. I did not compile it, I ftp'd the binary.  I don't have a dev set.
  17. My question is, why can't I run any /bin/sh scripts from it?
  18. If I put the #!/bin/sh at the beginning, it doesn't work.
  19. Here is an example:
  20.  
  21. #!/bin/sh
  22.  
  23. if [ `tty` = /dev/syscon ]
  24. then
  25.   sysinfo
  26. fi
  27.  
  28.  
  29.  
  30. If I do "sh scriptname" it works, but just "scriptname" gives
  31. me "if: Expression Syntax."
  32.  
  33. Any ideas?
  34.  
  35. -- 
  36. ------------------------------------------------------------------------------
  37. | Bob Hruska         DoD #1982 | email: hruska@bnr.ca                        |
  38. | BNR Inc. - XPM Base Software |USmail: 35 Davis Drive                       |
  39. | RTP North Carolina           |        Research Triangle Park, NC 27709     |
  40. ------------------------------------------------------------------------------
  41.