Fixed long-years standing bug wrt broken multi-line cmdline editing
authorshort <>
Sun, 23 Jun 2002 23:13:11 +0000 (23:13 +0000)
committershort <>
Sun, 23 Jun 2002 23:13:11 +0000 (23:13 +0000)
 - caused by \017 in PS1 (incorrectly counted by bash as printable)

.bashrc

diff --git a/.bashrc b/.bashrc
index 6f7a9c9..884df1b 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -76,7 +76,7 @@ export LC_CTYPE=cs_CZ.ISO-8859-2
 export PERL_MM_OPT="PERL=$HOME/bin/perlilib PREFIX=$HOME"
 export WWW_HOME="file:///home/short/.bookmarks.html"
 export GREP_OPTIONS="--binary-files=without-match --directories=skip"
-[ -n "$PS1" ] && export PS1="`echo -en '\017'`$PS1"    # set only in interactive sessions
+[ -n "$PS1" ] && export PS1='\[\017\]'"$PS1"   # set only in interactive sessions
 export MINICOM="-m -c on"      # metakeys+color
 export HISTSIZE=100000
 export HISTFILESIZE="$HISTSIZE"