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