Re: Readline fencepost error with long prompt

2009-04-25 Thread Chet Ramey
Andreas Schwab wrote: > Configuration Information [Automatically generated, do not change]: > Machine: powerpc > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' > -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='powerpc-suse-linux-gnu' > -DCONF_VENDOR='su

Re: Bash 4 cursor in my prompt

2009-04-25 Thread Ian Kelling
Chet Ramey wrote: Ian Kelling wrote: Special Sauce wrote: From: anton To: bug-bash@gnu.org Subject: Cursor starts inside prompt I just noticed this issue too. It seems it was fine under gnu screen, but not with plain xterm or gnome-terminal. Upgrading to the latest patch version 4.0.17 fixed i

Re: Syntax for tab character

2009-04-25 Thread Bill Gradwohl
On Sat, 2009-04-25 at 14:49 -0400, Chet Ramey wrote: > No, there really aren't any tabs in the value of ${parameter}. For > some reason, you use `echo -e' to send input to `dumpit'. The whole > reason the -e option to echo exists is to expand backslash escapes, > and it dutifully expands \t to ta

Re: Bash 4 cursor in my prompt

2009-04-25 Thread Ian Kelling
Chet Ramey wrote: > Ian Kelling wrote: >> Special Sauce wrote: >>> From: anton >>> To: bug-bash@gnu.org >>> Subject: Cursor starts inside prompt >> I just noticed this issue too. It seems it was fine under gnu screen, >> but not with plain xterm or gnome-terminal. Upgrading to the latest >> patch

Re: Syntax for tab character

2009-04-25 Thread Chet Ramey
Bill Gradwohl wrote: > On Fri, 2009-04-24 at 18:54 -0400, Chet Ramey wrote: >> I'm not quite sure what this is supposed to demonstrate. In the cases >> where you have specified the tab character correctly ($'\t'), it's >> converted into a tab before matching is attempted. > I respectfully disagr

Re: bash does not read startup scripts on some machines

2009-04-25 Thread Justin
Thank you for your detailed response. I worked with the system administrators to get this resolved. In the end they changed pam so that it would source .bashrc. The added this to /etc/pam.d/sshd: sessionoptional pam_env.so conffile=/etc/ssh/env.conf envfile=/etc/ssh/environment They

addr...@hidden (Re: indirection as an lvalue)

2009-04-25 Thread Bob Proulx
Bill Gradwohl wrote: > BTW - I ran thru the archives via a search for 'indirection' and for the > longest time was confused by references to addr...@hidden scattered > throughout the code examples. Here's an example: > http://lists.gnu.org/archive/html/bug-bash/2002-11/msg00085.html > > I did a ma

Re: Bash 4 cursor in my prompt

2009-04-25 Thread Chet Ramey
Ian Kelling wrote: > Special Sauce wrote: >> From: anton >> To: bug-bash@gnu.org >> Subject: Cursor starts inside prompt > > I just noticed this issue too. It seems it was fine under gnu screen, > but not with plain xterm or gnome-terminal. Upgrading to the latest > patch version 4.0.17 fixed it.

Re: bash does not read startup scripts on some machines

2009-04-25 Thread Bob Proulx
Justin wrote: > I am using a command line ssh tool called qtssh on windows to > connect to a redhat server. qtssh is a command line ssh tool built > upon putty that is included with the visualization toolkit VisIt. > This tool is designed to run commands remotely and does not create > an interacti

Re: Syntax for tab character

2009-04-25 Thread Andreas Schwab
Bill Gradwohl writes: > And I also used printf as you suggested, and they both produce the same > output. No, they don't. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: Syntax for tab character

2009-04-25 Thread Bill Gradwohl
On Sat, 2009-04-25 at 15:22 +0200, Andreas Schwab wrote: > You *still* use echo -e! And I also used printf as you suggested, and they both produce the same output. What's the problem? -- Bill Gradwohl signature.asc Description: This is a digitally signed message part

Re: Syntax for tab character

2009-04-25 Thread Andreas Schwab
Bill Gradwohl writes: > Please run the script and see for yourself. You *still* use echo -e! Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: Syntax for tab character

2009-04-25 Thread Bill Gradwohl
On Sat, 2009-04-25 at 14:17 +0200, Andreas Schwab wrote: > Your hex dump proves nothing. Your use of `echo -e' mangles the value. > Only `printf %s' can output the literal value of its argument. The fixed script augmented with printf is attached. They both produce the same results, so printf or e

Re: Syntax for tab character

2009-04-25 Thread Andreas Schwab
Bill Gradwohl writes: > I did a hex dump to prove Your hex dump proves nothing. Your use of `echo -e' mangles the value. Only `printf %s' can output the literal value of its argument. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5

Re: Syntax for tab character

2009-04-25 Thread Bill Gradwohl
On Fri, 2009-04-24 at 18:54 -0400, Chet Ramey wrote: > I'm not quite sure what this is supposed to demonstrate. In the cases > where you have specified the tab character correctly ($'\t'), it's > converted into a tab before matching is attempted. I respectfully disagree, and I believe I have pro

Readline fencepost error with long prompt

2009-04-25 Thread Andreas Schwab
Configuration Information [Automatically generated, do not change]: Machine: powerpc OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='powerpc-suse-linux-gnu' -DCONF_VENDOR='suse' -DLOCALEDIR='/usr/share/locale'