home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell,comp.unix.question
- Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!darwin.sura.net!convex!convex!tchrist
- From: Tom Christiansen <tchrist@convex.COM>
- Subject: Re: Changing a 1 line zsh script to sh,perl,csh or tcsh etc.
- Originator: tchrist@pixel.convex.com
- Sender: usenet@news.eng.convex.com (news access account)
- Message-ID: <1992Nov9.144605.7727@news.eng.convex.com>
- Date: Mon, 9 Nov 1992 14:46:05 GMT
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- References: <1992Nov8.020133.4348@midway.uchicago.edu>
- Nntp-Posting-Host: pixel.convex.com
- Organization: Convex Computer Corporation, Colorado Springs, CO
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 17
-
- From the keyboard of lie6@midway.uchicago.edu:
- :How would I write this in sh, or perl, or csh, or tcsh?
- :
- :#!/bin/zsh
- :ARGV0='-tcsh .' $1 $2 $3 $4
-
- If I understand what you're doing (changing what ps sees):
-
- #!/usr/bin/perl
- $0 = "-tcsh . @ARGV";
-
- --tom
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
-
- "* Unix is a footnote of AT&T Bell Laboratories."
- --Barry Shein
-