Source-Changes-D archive

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

Re: CVS commit: src/usr.bin/sys_info



    Date:        Thu, 24 Aug 2017 13:58:56 +1000
    From:        matthew green <mrg%eterna.com.au@localhost>
    Message-ID:  <16387.1503547136%splode.eterna.com.au@localhost>

  | it's a pity that this no longer works on older netbsd /bin/sh.
  | the rev 1.5 from a couple of days ago works ok, but the latest
  | gives this error:

Try it using ast-ksh, mksh, bash, maybe even zsh from pkgsrc - I suspect that
just about any of them should work for it (zsh deviates from posix sometimes,
so while the ;& will be no issue, something else might be).   The old NetBSD
sh was falling way behind the rest of the universe (incl FreeBSD, though its
sh is not so easily available on NetBSD, but if it were, it would work with
that one too.)

But this script only appeared from NetBSD 8, which does have a modern
enough sh.

You wouldn't expect a Makefile written using NetBSD 8 make to necessarily
just work on earlier versions, a sh script is no different.

  | i am unfamiliar with the ";&" syntax,

Think /* FALLTHROUGH */ in C ... (the lack of a "break;" at the end of
a block of statements after a case ...:)

kre



Home | Main Index | Thread Index | Old Index