diff options
author | msmith <msmith@FreeBSD.org> | 1997-07-23 18:23:42 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1997-07-23 18:23:42 +0000 |
commit | 0c9a90d609116156689744373258baaa70aefc7f (patch) | |
tree | 8565d3ec46a58ddcea80093f9c176014264fc15c /lib/libedit | |
parent | 6f0eaaa0ccc919c89e16990d2e3f4bda6dced3ae (diff) | |
download | FreeBSD-src-0c9a90d609116156689744373258baaa70aefc7f.zip FreeBSD-src-0c9a90d609116156689744373258baaa70aefc7f.tar.gz |
Reorder decomposition of the filename argument for the '-h' flag to
avoid misprocessing in the case where the filename argument contains
more than one period.
Submitted by: micke@dynas.se (Mikael Hybsch)
Diffstat (limited to 'lib/libedit')
-rw-r--r-- | lib/libedit/makelist | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libedit/makelist b/lib/libedit/makelist index 0b2e7a0..7e66b98 100644 --- a/lib/libedit/makelist +++ b/lib/libedit/makelist @@ -54,11 +54,12 @@ FILES="$@" case $FLAG in -h) + fn=`basename $FILES` OIFS="$IFS" IFS=".$IFS" - set - $FILES + set - $fn IFS="$OIFS" - hdr="_h_`basename $1`_$2" + hdr="_h_$1_$2" cat $FILES | $AWK ' BEGIN { printf("/* Automatically generated file, do not edit */\n"); |