home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / shell / 3524 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.2 KB  |  33 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!minyos.xx.rmit.oz.au!s902113
  3. From: s902113@minyos.xx.rmit.oz.au (Luke Mewburn)
  4. Subject: testing if running shell script in {t}csh
  5. Organization: RMIT Computer Centre, Melbourne Australia.
  6. Date: Wed, 19 Aug 1992 02:15:23 EST
  7. Message-ID: <1992Aug19.021523.904@minyos.xx.rmit.oz.au>
  8. Lines: 23
  9.  
  10.  
  11. What is a good reliable method of testing if you are not running as a
  12. user shell (i.e, as a script).
  13.  
  14. Now, don't tell me about the existance of $prompt. This is no good if
  15. the prompt is setup in /etc/csh.cshrc (or whatever), which I have no
  16. control over whatsoever....
  17.  
  18.  
  19. Thanx in advance
  20.  
  21. Luke.
  22. -- 
  23.  
  24. "...(and) We've heard how teen prostitution, pregnancy,        Luke Mewburn
  25. drug use, cults, runaways, suicide and poor hygiene are          s902113@
  26. sweeping this nation. We thought you might like to share          minyos.
  27. with the committee any particular *causes* you might see            xx.
  28. for those latter problems..."                                      rmit.
  29. "  I dunno, Maybe the proliferation of narrow, suffocating          oz.
  30. zealotry masquerading as parenting in this country."                au
  31.               Steve Dallas, 'Bloom County'.
  32.  
  33.