From 194fb96e6a2667dad0862bf8f7994ad5edba1130 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Wed, 23 Jul 1997 18:23:42 +0000 Subject: [PATCH] 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) --- lib/libedit/makelist | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/libedit/makelist b/lib/libedit/makelist index 0b2e7a01ee10..7e66b9811e2f 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");