home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscit.sc.hp.com!news.dtc.hp.com!srgenprp!chrise
- From: chrise@sr.hp.com (Chris Eich)
- Subject: Re: How to get to $? of /bin/sh
- Sender: news@srgenprp.sr.hp.com (placeholder for future)
- Message-ID: <C0rLIu.3Cs@srgenprp.sr.hp.com>
- Date: Tue, 12 Jan 1993 23:35:17 GMT
- References: <guy.726876346@tdsb-s>
- Organization: HP Sonoma County (SRSD/MWTD/MID)
- X-Newsreader: TIN [version 1.1 PL8.1]
- Lines: 6
-
- It works for me (note that the status is shifted 8 bits as in wait(2)):
-
- $ perl -e '`cp >/dev/null 2>&1`;print $?, "\n"'
- 256
-
- Chris
-