home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / question / 14817 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.0 KB

  1. Xref: sparky comp.unix.questions:14817 comp.unix.shell:5111
  2. Newsgroups: comp.unix.questions,comp.unix.shell
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!usc!news.cerf.net!netlabs!lwall
  4. From: lwall@netlabs.com (Larry Wall)
  5. Subject: Re: How do I invoke a login shell.
  6. Message-ID: <1992Dec18.183521.19510@netlabs.com>
  7. Sender: news@netlabs.com
  8. Nntp-Posting-Host: scalpel.netlabs.com
  9. Organization: NetLabs, Inc.
  10. References: <34657@adm.brl.mil> <PD.92Dec16151507@mull.x.co.uk> <mcook.724615604@fendahl.dev.cdx.mot.com>
  11. Date: Fri, 18 Dec 1992 18:35:21 GMT
  12. Lines: 13
  13.  
  14. In article <mcook.724615604@fendahl.dev.cdx.mot.com> mcook@fendahl.dev.cdx.mot.com (Michael Cook) writes:
  15. : If you have Perl:
  16. :    exec perl -e 'exec("/bin/csh" "-csh", @ARGV) || die "$!"' $argv:q
  17. :                 (note: no comma)^
  18.  
  19. Well, that's a syntax error, because you can't put a quoted string into
  20. the syntactic "filehandle" slot.  You really want something more like this:
  21.  
  22.   exec perl -e '$csh = "/bin/csh"; exec($csh "-csh", @ARGV) || die $!' $argv:q
  23.  
  24. Larry Wall
  25. lwall@netlabs.com
  26.