Source-Changes-HG archive

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

[src/trunk]: src/bin/sh update that -n is implemented and add -h using the lo...



details:   https://anonhg.NetBSD.org/src/rev/343917e446f5
branches:  trunk
changeset: 343728:343917e446f5
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Feb 23 16:22:43 2016 +0000

description:
update that -n is implemented and add -h using the long name that bash
uses. (from kre, long name from me)

diffstat:

 bin/sh/options.h |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r fd6870f1284c -r 343917e446f5 bin/sh/options.h
--- a/bin/sh/options.h  Tue Feb 23 16:21:55 2016 +0000
+++ b/bin/sh/options.h  Tue Feb 23 16:22:43 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: options.h,v 1.22 2015/05/26 21:35:15 christos Exp $    */
+/*     $NetBSD: options.h,v 1.23 2016/02/23 16:22:43 christos Exp $    */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -71,7 +71,7 @@
 #define iflag optlist[3].val
 DEF_OPT( "monitor",    'm' )   /* job control */
 #define mflag optlist[4].val
-DEF_OPT( "noexec",     'n' )   /* [U] do not exec commands */
+DEF_OPT( "noexec",     'n' )   /* do not exec commands */
 #define nflag optlist[5].val
 DEF_OPT( "stdin",      's' )   /* read from stdin */
 #define sflag optlist[6].val
@@ -102,10 +102,12 @@
 DEF_OPT( "fork",       'F' )   /* use fork(2) instead of vfork(2) */
 #define        usefork optlist[19].val
 DEF_OPT( "nopriv",     'p' )   /* preserve privs even if set{u,g}id */
-#define pflag optlist[20].val
+#define        pflag optlist[20].val
+DEF_OPT( "hashall",    'h' )   /* [U] locate cmds in funcs when defined */
+#define        hflag optlist[21].val
 #ifdef DEBUG
 DEF_OPT( "debug",      0 )     /* enable debug prints */
-#define        debug optlist[21].val
+#define        debug optlist[22].val
 #endif
 
 #ifdef DEFINE_OPTIONS



Home | Main Index | Thread Index | Old Index