[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sh -c "# foo bar"; echo $?



Den 10 Nov 99, klockan 17:22
skrev Christian Weisgerber om (sh -c "# foo bar"; echo $?):

> I'd like to know what
> 
> sh -c '# foo bar'; echo $?
> 
> returns for other people.
> For me it's 1 on 2.6/sparc and 2.6/alpha. Bizarrely enough, pdksh on
> FreeBSD returns 0. Same version.

BSDI/i386 BSD/OS 3.1
sh returns 0
ksh (PD KSH v5.2.8) returns 0
bash (2.03) returns 0
bash (1.14.7) return 0

Solaris/sparc 2.6
sh returns 0
ksh (M-11/16/88i) returns 0
bash (2.02.0) returns 0

/Peter




Visit your host, monkey.org