Source-Changes-HG archive

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

[src/trunk]: src/bin/sh don't compile in `-h' as a synonym for the command th...



details:   https://anonhg.NetBSD.org/src/rev/462cbd3a6065
branches:  trunk
changeset: 538224:462cbd3a6065
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Oct 15 04:15:58 2002 +0000

description:
don't compile in `-h' as a synonym for the command that the argument is for.
this fix is hokey, but works as well as the previous solution for -j.

diffstat:

 bin/sh/mkbuiltins |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 22c306c47fe3 -r 462cbd3a6065 bin/sh/mkbuiltins
--- a/bin/sh/mkbuiltins Mon Oct 14 22:32:50 2002 +0000
+++ b/bin/sh/mkbuiltins Tue Oct 15 04:15:58 2002 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: mkbuiltins,v 1.15 1999/07/09 03:05:50 christos Exp $
+#      $NetBSD: mkbuiltins,v 1.16 2002/10/15 04:15:58 lukem Exp $
 #
 # Copyright (c) 1991, 1993
 #      The Regents of the University of California.  All rights reserved.
@@ -65,7 +65,7 @@
 
 !
 awk '/^[^#]/ {if(('$havejobs' || $2 != "-j") && ('$havehist' || $2 != "-h")) \
-    print $0}' ${builtins} | sed 's/-j//' > $temp
+    print $0}' ${builtins} | sed 's/-[jh]//' > $temp
 awk '{ printf "int %s __P((int, char **));\n", $1}' $temp
 echo '
 int (*const builtinfunc[]) __P((int, char **)) = {'



Home | Main Index | Thread Index | Old Index