T.R | Title | User | Personal Name | Date | Lines |
---|
8563.1 | More info... | DECC::SULLIVAN | Jeff Sullivan | Thu Jan 23 1997 12:13 | 34 |
8563.2 | Looks like we match sh(1b) man page | NETRIX::"[email protected]" | Brian Haley | Thu Jan 23 1997 14:24 | 24 |
8563.3 | Yick; ok, our's is explainable, but there's looks wrong! | WTFN::SCALES | Despair is appropriate and inevitable. | Thu Jan 23 1997 15:33 | 13 |
8563.4 | | BIGUN::nessus.cao.dec.com::Mayne | Wake up, time to die | Thu Jan 23 1997 16:47 | 3 |
8563.5 | Bourne vs. POSIX vs. Korn vs. ... | CFSCTC::SMITH | Tom Smith MRO1-3/D12 dtn 297-4751 | Thu Jan 23 1997 20:37 | 42 |
| Results of "a.sh 100" with appropriate settings of #!/path/mumblesh:
"Bourne" shell:
DUX V3.2c DUX V4.0 HP-UX 9.05 HP-UX 10.0
/bin/sh /bin/sh /bin/sh
/usr/bin/sh /usr/old/bin/sh
100 100 100 100
100 100 200 200
100 100 200 200
Posix shell:
DUX V3.2c DUX V4.0 HP-UX 9.05 HP-UX 10.0
/bin/sh
- /usr/bin/posix/sh /bin/posix/sh /usr/bin/sh
- 100 100 100
- 200 200 200
- 200 200 200
Korn shell:
DUX V3.2c DUX V4.0 HP-UX 9.05 HP-UX 10.0
/bin/ksh /bin/ksh /bin/ksh /bin/ksh
/usr/bin/posix/sh /usr/bin/ksh
100 100 100 100
200 200 200 200
200 200 200 200
pdksh:
DUX V3.2c DUX V4.0 HP-UX 9.05 HP-UX 10.0
100 100 100 100
200 200 200 200
100 100 100 100
Moral: Use pdksh if you want the right result. Otherwise, use /bin/ksh.
The results may be surprising, but at least they're consistent. ;-)
|
8563.6 | | NETRIX::"[email protected]" | Dicko Hamadoun | Fri Jan 24 1997 04:44 | 13 |
| Well !, What is pdksh . I guess it's dtksh.
Anyway
The output for dtksh is:
100
200
100
Back to the future.
[Posted by WWW Notes gateway]
|
8563.7 | | CFSCTC::SMITH | Tom Smith MRO1-3/D12 dtn 297-4751 | Fri Jan 24 1997 11:54 | 3 |
| pdksh (PD-ksh) is Public Domain Korn SHell.
ftp://ftp.cs.mun.ca:/pub/pdksh/ .
|