My history improvements
Lars Soltau
space at ncc1701.stgt.sub.org
Wed Sep 26 19:58:02 AEST 1990
OK, nobody is perfect.
When I prepared my changes for distribution (reformatted everything etc.)
I omitted two bug-fixes that I already had made.
First, in readline.c, "list-possible-completions", which I changed from
format "ls" to format "ls -F", listed directories with trailing "*".
Second, in some cases, when a history line was replaced with itself, bash
dumped core.
Below are two short patches which correct these problems.
Now, I would very much like to here from you if you use the history
improvements. Please drop me a note, improvements, comments, etc., at the
address below. I am doing this as software project and need comments. Thnx.
# This is a shell archive.
# Remove everything above and including the cut line.
# Then run the rest of the file through sh.
#----cut here-----cut here-----cut here-----cut here----#
#!/bin/sh
# shar: Shell Archiver
# Run the following text with /bin/sh to create:
# diff_history.c
# diff_readline.c
#
# This archive created: Wed Sep 26 10:51:24 1990
cat << \SHAR_EOF > diff_history.c
284a285,289
> if (pos == which)
> {
> /* Replace a line with itself? Huh? */
> return(NULL);
> }
SHAR_EOF
cat << \SHAR_EOF > diff_readline.c
5539a5540,5542
> case S_IFDIR:
> suffix = '/';
> break;
SHAR_EOF
# End of shell archive
exit 0
--
Lars Soltau bang: <insert ridiculously long path> Bix: -- no bucks --
smart: space at ncc1701.stgt.sub.org
Stuttgart-Zuffenhausen, where dreams come true: Heaven is Eleven!
More information about the Comp.sys.sgi
mailing list