Date:        Mon, 11 Dec 2017 23:54:36 +0100
    From:        [email protected]
    Message-ID:  <[email protected]>

  | 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

Reply via email to