Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Ensure that all of the POSIX standard utilities are c...



details:   https://anonhg.NetBSD.org/src/rev/54c5668e0c4e
branches:  trunk
changeset: 1025535:54c5668e0c4e
user:      kre <kre%NetBSD.org@localhost>
date:      Wed Nov 10 18:25:52 2021 +0000

description:
Ensure that all of the POSIX standard utilities are correctly
identified with the -u flag (that is, I hope I identified all
the ones that were missing it).

This change is a no-op (NFC) as the -u flag does nothing.

Still, just in case we find a use for it one day, and just as a
matter of general principle, we should get this correct.

diffstat:

 bin/sh/builtins.def |  17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diffs (59 lines):

diff -r 82eff9d3f8bc -r 54c5668e0c4e bin/sh/builtins.def
--- a/bin/sh/builtins.def       Wed Nov 10 17:38:11 2021 +0000
+++ b/bin/sh/builtins.def       Wed Nov 10 18:25:52 2021 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: builtins.def,v 1.26 2019/02/14 11:15:24 kre Exp $
+#      $NetBSD: builtins.def,v 1.27 2021/11/10 18:25:52 kre Exp $
 #
 # Copyright (c) 1991, 1993
 #      The Regents of the University of California.  All rights reserved.
@@ -50,7 +50,7 @@
 breakcmd       -s break -s continue
 cdcmd          -u cd chdir
 dotcmd         -s .
-echocmd                echo
+echocmd                -u echo
 evalcmd                -s eval
 execcmd                -s exec
 exitcmd                -s exit
@@ -62,12 +62,12 @@
 fgcmd -j       -u fg
 fgcmd_percent -j       -u %
 getoptscmd     -u getopts
-hashcmd                hash
+hashcmd                -u hash
 jobidcmd       jobid
 jobscmd                -u jobs
 localcmd       local
 #ifndef TINY
-printfcmd      printf
+printfcmd      -u printf
 #endif
 pwdcmd         -u pwd
 readcmd                -u read
@@ -82,20 +82,19 @@
 timescmd       -s times
 trapcmd                -s trap
 truecmd                -s : -u true
-typecmd                type
+typecmd                -u type
 umaskcmd       -u umask
 unaliascmd     -u unalias
 unsetcmd       -s unset
 waitcmd                -u wait
 aliascmd       -u alias
-ulimitcmd      ulimit
-testcmd                test [
+ulimitcmd      -u ulimit
+testcmd                -u test -u [
 killcmd                -u kill         # mandated by posix for 'kill %job'
 wordexpcmd     wordexp
 #newgrp                -u newgrp       # optional command in posix
+#exprcmd       -u expr         # not currently built in, but could be
 
 #ifdef DEBUG
 debugcmd       debug
 #endif
-
-#exprcmd       expr



Home | Main Index | Thread Index | Old Index