[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

8563.0. "sh on DU or sh on HP ?? bug or not bug THIS IS THE QUESTION" by AZUR::DICKO () Thu Jan 23 1997 11:31

T.RTitleUserPersonal
Name
DateLines
8563.1More info...DECC::SULLIVANJeff SullivanThu Jan 23 1997 12:1334
8563.2Looks like we match sh(1b) man pageNETRIX::"[email protected]"Brian HaleyThu Jan 23 1997 14:2424
8563.3Yick; ok, our's is explainable, but there's looks wrong!WTFN::SCALESDespair is appropriate and inevitable.Thu Jan 23 1997 15:3313
8563.4BIGUN::nessus.cao.dec.com::MayneWake up, time to dieThu Jan 23 1997 16:473
8563.5Bourne vs. POSIX vs. Korn vs. ...CFSCTC::SMITHTom Smith MRO1-3/D12 dtn 297-4751Thu Jan 23 1997 20:3742
    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.6NETRIX::"[email protected]"Dicko HamadounFri Jan 24 1997 04:4413
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.7CFSCTC::SMITHTom Smith MRO1-3/D12 dtn 297-4751Fri Jan 24 1997 11:543
    pdksh (PD-ksh) is Public Domain Korn SHell.
    
    ftp://ftp.cs.mun.ca:/pub/pdksh/ .