Skip to content
Discussion options

You must be logged in to vote

The posix option is a u+m addition to ksh93, it is not in the AT&T release.

From NEWS:

2020-09-01:

  • A long-form shell option '-o posix' has been added, which implements a
    mode for better compatibility with the POSIX standard. It is automatically
    turned on if ksh is invoked under the name 'sh'.
    For now, it:
    • disables the &> redirection shorthand
    • causes the 'let' arithmetic command to recognise octal numbers by
      leading zeros regardless of the setting of the 'letoctal' option
    • causes file descriptors > 2 to be left open when invoking another program
    • makes the <> redirection operator default to stdin instead of stdout
      (this keeps the 2020-05-13 BUG_REDIRIO fix for the POSIX mode while
      restori…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@posguy99
Comment options

Answer selected by ravindra-shinde2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants