tech-userlevel archive

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

Re: Non POSIX.2 compliance in sh and ksh



    Date:        Mon, 11 Dec 2017 23:54:36 +0100
    From:        tlaronde%polynum.com@localhost
    Message-ID:  <20171211225436.GA27242%polynum.com@localhost>

  | If I read correctly SUSv4, for the sh(1) unset builtin:
  | 
  | 	Unsetting a variable or function that was not previously set shall
  | 	not be considered an error and does not cause the shell to abort.

That's correct.

  | But if one unset a variable not set, the return status is 1

Not in more modern versions of /bin/sh than the one you are using.
This was fixed a long time ago.   (the ksh in NetBSD is simply ancient.)

kre



Home | Main Index | Thread Index | Old Index