The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > BSD
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 08-08-2005
hadarot hadarot is offline
Registered User
 

Join Date: Jul 2005
Posts: 33
That's not what I was after. But I did find this in OpenBSD's sh man page:

Quote:
NOTES
sh is implemented as a run-time option of pdksh, with only those sh fea-
tures whose syntax or semantics are incompatible with a traditional
Bourne shell disabled. Since this leaves some sh extensions exposed,
caution should be used where backwards compatibility with traditional
Bourne or POSIX compliant shells is an issue.
So it indeed does function like bash, insofar that OpenBSD's modified version of pdksh checks if it has been invoked as "sh" or as "ksh", and adjusts accordingly. The only thing now is determning what presicely are those features that are disabled from their pdksh when it is invoked as sh. They should list them in the man page, but in fact they don't. One feature difference that I have spotted so far is that "sh" mode that does not support (( )) style arithmetic; you have to us let. (Though $(( )) arithmeatic expansion does work in "sh".)

Last edited by hadarot; 08-08-2005 at 03:51 PM.
Reply With Quote