Subject: CVS commit: [netbsd-3] src/bin/sh
To: None <source-changes@NetBSD.org>
From: Manuel Bouyer <bouyer@netbsd.org>
List: source-changes
Date: 03/31/2007 14:04:59
Module Name: src
Committed By: bouyer
Date: Sat Mar 31 14:04:58 UTC 2007
Modified Files:
src/bin/sh [netbsd-3]: histedit.c
Log Message:
Pull up following revision(s) (requested by mjf in ticket #1689):
bin/sh/histedit.c: revision 1.38
Make the -s flag of fc work correctly. Ensure that only one command
is specified and ensure that we break out of the loop after executing it.
With the previous code, because the re-executed command was added to the
history, it would think that it still had to execute it, leading to
an infinite loop.
To generate a diff of this commit:
cvs rdiff -r1.34 -r1.34.6.1 src/bin/sh/histedit.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.