summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-10-18 10:33:32 +0000
committertjr <tjr@FreeBSD.org>2002-10-18 10:33:32 +0000
commita96c7569e15921fa023426e26e355d6841135eda (patch)
tree5f161ca4bda24745cdcb235832a2cdc78d57fa4c /bin
parenta2b48adeec46bdfc51833aa4bc7023101ffcfa1c (diff)
downloadFreeBSD-src-a96c7569e15921fa023426e26e355d6841135eda.zip
FreeBSD-src-a96c7569e15921fa023426e26e355d6841135eda.tar.gz
Avoid accidentally making "-h" a synonym for "fc".
Obtained from: NetBSD
Diffstat (limited to 'bin')
-rwxr-xr-xbin/sh/mkbuiltins2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/mkbuiltins b/bin/sh/mkbuiltins
index e4beb76..4ba301c 100755
--- a/bin/sh/mkbuiltins
+++ b/bin/sh/mkbuiltins
@@ -60,7 +60,7 @@ cat <<\!
!
awk '/^[^#]/ {if(('$havejobs' || $2 != "-j") && ('$havehist' || $2 != "-h")) \
- print $0}' builtins.def | sed 's/-j//' > $temp
+ print $0}' builtins.def | sed 's/-[hj]//' > $temp
awk '{ printf "int %s();\n", $1}' $temp
echo '
int (*const builtinfunc[])() = {'
OpenPOWER on IntegriCloud