bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

comments on a secundary prompt, and history.


From: Cad Support
Subject: comments on a secundary prompt, and history.
Date: Fri, 30 Jul 2004 12:35:48 +0200

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -D_GNU_SOURCE  -I.  -I.
-I./include -I./lib -O2 -march=i386 -mcpu=i686
uname output: Linux crdws072 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002
i686 unknown
Machine Type: i686-pc-linux-gnu

Bash Version: 2.05a
Patch Level: 0
Release Status: release

More Configuration Information:
Machine: i686
OS: cygwin
Compiler: i686-pc-cygwin-gcc
Compilation CFLAGS:  -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -DRECYCLES_PIDS  -I. 
-I../bash-2.05b -I../bash-2.05b/include -I../bash-2.05b/lib  -g -O2
uname output: CYGWIN_NT-5.1 CMEWS064 1.3.22(0.78/3/2) 2003-03-18 09:20
i686 unknown unknown Cygwin
Machine Type: i686-pc-cygwin

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
  A command entered on the secundary prompt will be shown in history as
a one-liner.  If a comment # is on one of the secundary lines, the
following commands are ignored when one uses the history.
Repeat-By:

[oghdayan@crdws072 oghdayan]$ for i in justonetime ; do
> printf "Hello " #the next line will not be interpreted on a history.
> printf "World\n"
> done
Hello World
[oghdayan@crdws072 oghdayan]$ #Lets try to recall with "keyboard up +
enter" 
[oghdayan@crdws072 oghdayan]$ for i in justonetime ; do printf "Hello "
#the next line will not be interpreted on a history.; printf "World\n";
done
> 
[oghdayan@crdws072 oghdayan]$ #interrupted by <ctrl>+C . It did not see
the "done" and hung on secundary prompt.
[oghdayan@crdws072 oghdayan]$ #lets try to recall using fc
[oghdayan@crdws072 oghdayan]$ fc -e - for
for i in justonetime ; do printf "Hello " #the next line will not be
interpreted on a history.; printf "World\n"; done
bash: syntax error: unexpected end of file
[oghdayan@crdws072 oghdayan]$ #it fails, but did not hang this time.

Fix:
        In the history buffer, do not replace "\n" by ";" , when inside
comment. Support multiple lines in a history element.

Yet More Configuration information:
 reproduces with bash 2.03 under solaris 8
 does not reproduce wish bash 2.04 under HPUX11i






reply via email to

[Prev in Thread] Current Thread [Next in Thread]