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

This commit is contained in:
Jari Aalto
2009-09-12 16:46:55 +00:00
parent f73dda092b
commit 7117c2d221
362 changed files with 34387 additions and 15063 deletions
+3 -3
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