home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / wizards / 5366 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.9 KB

  1. Path: sparky!uunet!munnari.oz.au!goanna!escargot!otto!dtb
  2. From: dtb@otto (David Bath)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Re: O Wizards, is there vi w/out shell?
  5. Message-ID: <dtb.726155316@otto>
  6. Date: 4 Jan 93 13:48:36 GMT
  7. References: <Bz0x63.Fqq@ucunix.san.uc.edu> <1992Dec11.180118.1144@leland.Stanford.EDU> <67@nearside.UUCP> <1992Dec17.193838.15886@mp.cs.niu.edu>
  8. Organization: RMIT Computer Centre
  9. Lines: 41
  10. NNTP-Posting-Host: otto.bf.rmit.oz.au
  11.  
  12. rickert@mp.cs.niu.edu (Neil Rickert) writes:
  13.  
  14. >In article <67@nearside.UUCP> shwake@nearside.UUCP (Raymond Shwake) writes:
  15. >>dkeisen@leland.Stanford.EDU (Dave Eisen) writes:
  16. >>
  17. >>    I like to set SHELL to /bin/echo; the only point is to invoke
  18. >>    something innocuous.
  19. >>
  20. >>>This doesn't do any good. The user can still type :set shell=/bin/csh
  21. >>>and give himself a shell whenver he wants. The SHELL environment
  22. >>>vaiable is only used to initialize the internal vi shell variable.
  23. >>
  24. >>    Quite true. What I've done is binary patch the "set" string to
  25. >>    include an embedded space (like "s x"). Seems to work.
  26.  
  27. >Try doing
  28.  
  29. >    :r !command
  30.  
  31. >chances are you find that still uses /bin/sh, regardless of your SHELL
  32. >environment.
  33.  
  34. Listen guys, get elvis (from GNU) or xvi (from SIMTEL::msdos/editors -
  35. a not too bad windowed vi for char terminals), and remove the offending
  36. code, compile and use this.  Then make the REAL vi executable only by
  37. appropriate people.
  38.  
  39. I did a similar job on kermit, removing ability to delete files, etc, etc
  40. , etc - took a couple of hours.
  41.  
  42. This is why having sources is so damn handy ?
  43.  
  44.  
  45. David T. Bath    Email:dtb@otto.bf.rmit.oz.au    Phone:03-3477511
  46. Global Technology Corporation, 179 Grattan St, CARLTON, VIC, 3153, AUSTRALIA
  47. "Failure to emulate is the best revenge" - Marcus Aurelius
  48.  
  49. -- 
  50. David T. Bath    Email:dtb@otto.bf.rmit.oz.au    Phone:03-3477511
  51. Global Technology Corporation, 179 Grattan St, CARLTON, VIC, 3153, AUSTRALIA
  52. "Failure to emulate is the best revenge" - Marcus Aurelius
  53.