Imported from ../bash-2.05b.tar.gz.

This commit is contained in:
Jari Aalto 2002-07-17 14:10:11 +00:00
commit 7117c2d221
362 changed files with 34387 additions and 15063 deletions

View file

@ -335,7 +335,7 @@ if test -s "$histfile"
then
cmdno="`set - \`wc -l $histfile\`;echo $1`"
cmdno="`expr \"$cmdno\" + 1`"
lastcmd="`tail -1 $histfile`"
lastcmd="`sed -n '$p' $histfile`"
copy=false
ohist=$histfile
while test ! -w "$histfile"
@ -689,7 +689,7 @@ esac/
rest=
;;
esac
i="`grep \"$wanted\" $histfile | tail -1`"
i="`grep \"$wanted\" $histfile | sed -n '$p'`"
;;
*)
# find which 'start-of-command' match is wanted
@ -708,7 +708,7 @@ esac/
rest=
;;
esac
i="`grep \"^$wanted\" $histfile | tail -1`"
i="`grep \"^$wanted\" $histfile | sed -n '$p'`"
;;
esac