2009-10-28, 20:28(-04), Dave Rutherford:
[...]
Add to .Xdefaults: XTerm*answerbackString: ^[[2~
Add to .bashrc (and .profile if it doesn't source .bashrc):
bind '^[[2~: overwrite-mode'
PROMPT_COMMAND='echo -n ^E'
[...]
Along those lines, you could use the TIOCSTI ioctl. That would
be
2009-10-29, 07:23(+00), Stephane CHAZELAS:
2009-10-28, 20:28(-04), Dave Rutherford:
[...]
Add to .Xdefaults: XTerm*answerbackString: ^[[2~
Add to .bashrc (and .profile if it doesn't source .bashrc):
bind '^[[2~: overwrite-mode'
PROMPT_COMMAND='echo -n ^E'
[...]
Along those lines,
$subject can be triggered easily by setting TERM to eterm (with unset
EMACS). Originally this segfault was caused by running emacs and within
emacs try to ssh on localhost.
Reproducer 1)
[rra...@dhcp-lab-170 ~]$ bash
[rra...@dhcp-lab-170 ~]$ exit
[rra...@dhcp-lab-170 ~]$ env TERM=eterm bash
BASH PATCH REPORT
=
Bash-Release: 4.0
Patch-ID: bash40-034
Bug-Reported-by:Anders Kaseorg ande...@mit.edu
Bug-Reference-ID:
1252856832.991059.8162.nullmai...@balanced-tree.mit.edu
Bug-Reference-URL:
BASH PATCH REPORT
=
Bash-Release: 4.0
Patch-ID: bash40-035
Bug-Reported-by:Freddy Vulto fvu...@gmail.com
Bug-Reference-ID:
e9c463930909171341p7cbe6e43pa3788ebbe3ade...@mail.gmail.com
On Wed, 28 Oct 2009 08:38:07 -0400
Greg Wooledge wool...@eeg.ccf.org replied:
I have tried setting:
IFS=$( echo )
$() removes all trailing newlines from the output of the command that
it executes. You're setting IFS to an empty string. If you want to
set IFS to a newline, use
Chet Ramey a écrit :
Functions were the last thing added to sh by Steve Bourne before he
left Bell Labs (he finished in 1983)
From Steve Bourne himself:
http://www.computerworld.com.au/article/279011/-z_programming_languages_bourne_shell_sh?pp=3
(very interesting interview)
On Thu, Oct 29, 2009 at 11:49:11AM -0400, Gerard wrote:
Are you sure? Using: IFS=$(echo) seems to set IFS to a newline here.
imadev:~$ IFS=$(echo)
imadev:~$ printf %s $IFS | od -t x1
000
imadev:~$ printf \n | od -t x1
000a
001
imadev:~$ echo ${#IFS}
0
imadev:~$ unset IFS
Also,
On Thu, 29 Oct 2009, Greg Wooledge wrote:
On Thu, Oct 29, 2009 at 11:49:11AM -0400, Gerard wrote:
Are you sure? Using: IFS=$(echo) seems to set IFS to a newline here.
imadev:~$ IFS=$(echo)
imadev:~$ printf %s $IFS | od -t x1
000
imadev:~$ printf \n | od -t x1
000a
001
Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -
DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -
DCONF_VENDOR='pc'
10 matches
Mail list logo