Re: Bash/readline enhancement: wish to pre-set initial value of input text

2008-07-09 Thread Chris F.A. Johnson
On 2008-07-08, Richard Neill wrote: > Dear All, > > When using read, it would be really neat to be able to pre-fill the form > with a default (or previous) value. > > For example, a script which wants you to enter your name, and thinks > that my name is Richard, but that I might want to correct it.

Bash tty session leader (tcsetpgrp) race condition - help requested

2008-07-09 Thread Joe Peterson
Hi all, I posted a bug report to bug-bash on June 21 about this seemingly long-standing problem, and I followed up with more info pointing to the cause a few days ago. I have not gotten any responses yet, and I am anxious to continue helping to find a solution. I am sorry not to include a patch

Re: setting locales

2008-07-09 Thread Roman Rakus
Chet Ramey wrote: In file locale.c, function get_locale_var, locale = default_locale;/* system-dependent; not really portable. should it be "C"? */ default_locale contains string returned by calling setlocale(LC_ALL,NULL); and we then use this string to assign locale for LC_'every_oth

Re: Problem with "for loop" in "here document"

2008-07-09 Thread BuraphaLinux Server
put a backslash in front of the $ so that it is not substituted when the here document read, but later when you run that code. On 7/9/08, Mr Aras <[EMAIL PROTECTED]> wrote: > > Hi, > > I've been trying to implement a "for loop" in a "here document" but the > "name" is never assigned to any of the

Re: Unable to do a for loop in "here document"

2008-07-09 Thread Stephane Chazelas
On Tue, Jul 08, 2008 at 08:44:47PM -0700, Mr Aras wrote: [...] > #!/bin/sh > sh <<-EOF > for word in hello world > do > echo word = $word > done > EOF > > output is: > word = > word = > > > Can someone tell me why this doesn't work? I've been going nuts trying to > figure this one out. [