typeset -r prevents local variable of same name.

2011-02-13 Thread steveo
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPAC

Re: [BUG] Bash not reacting to Ctrl-C

2011-02-13 Thread Oleg Nesterov
On 02/11, Linus Torvalds wrote: > > @@ -2424,6 +2425,18 @@ wait_for (pid) > sigaction (SIGCHLD, &oact, (struct sigaction *)NULL); > sigprocmask (SIG_SETMASK, &chldset, (sigset_t *)NULL); > # endif > + /* If the waitchld returned EINTR, and the shell got a SIGINT, > +

how to workaroun 'nl' being added to input-line after 49 characters....

2011-02-13 Thread Linda Walsh
I'm having a problem, I think, due to my setting the prompt in 'root' mode, to a different color. This results in me being able to enter only 49 characters on the input line before it wraps to the next line. I add an open and close sequence to the normal prompt (which has no weird problems with

Re: how to workaroun 'nl' being added to input-line after 49 characters....

2011-02-13 Thread Bob Proulx
Linda Walsh wrote: > I'm having a problem, I think, due to my setting the prompt in > 'root' mode, to a different color. This results in me being able to > enter only 49 characters on the input line before it wraps to the next > line. It sounds like you have forgotten to enclose non-printing cha

Re: how to workaroun 'nl' being added to input-line after 49 characters....

2011-02-13 Thread Dennis Williamson
On Sun, Feb 13, 2011 at 3:50 PM, Linda Walsh wrote: > I'm having a problem, I think,  due to my setting the prompt in > 'root' mode, to a different color.  This results in me being able to > enter only 49 characters on the input line before it wraps to the next > line. > > I add an open and close

Re: how to workaroun 'nl' being added to input-line after 49 characters....

2011-02-13 Thread Andreas Schwab
Dennis Williamson writes: > _CRed='\[\033[31m\]'  #Red > _CRST='\[\033[0m\]'  #Reset > _CBLD='\[\033[1m\]'  #Bold _CRed="\\[$(tput setaf 1)\\]" _CRST="\\[$(tput sgr0)\\]" _CBLD="\\[$(tput bold)\\]" Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 175

Re: how to workaroun 'nl' being added to input-line after 49 characters....

2011-02-13 Thread Linda Walsh
Thanks for all the great suggestions on how to do the encoding differently -- how about ideas on the input line length being truncated? ;-) Andreas Schwab wrote: Dennis Williamson writes: _CRed='\[\033[31m\]' #Red _CRST='\[\033[0m\]' #Reset _CBLD='\[\033[1m\]' #Bold _CRed="\\[$(tput s

Re: how to workaroun 'nl' being added to input-line after 49 characters....

2011-02-13 Thread Bob Proulx
Linda Walsh wrote: > Thanks for all the great suggestions on how to do the > encoding differently -- how about ideas on the input line > length being truncated? You seem to have misunderstood. Each and every one of those response has addressed your issue of input line length problems. The soluti

Re: how to workaroun 'nl' being added to input-line after 49 characters....

2011-02-13 Thread Linda Walsh
Bob Proulx wrote: Linda Walsh wrote: Thanks for all the great suggestions on how to do the encoding differently -- how about ideas on the input line length being truncated? You seem to have misunderstood. --- Actually, I saw the two rewrites first as they were sent via Personal mail and li

Re: how to workaroun 'nl' being added to input-line after 49 characters....

2011-02-13 Thread Bob Proulx
Linda Walsh wrote: > But anyway, something else is is awry. > > Now my root prompt, instead of being red, looks like: > > "\[\033[1m\]\[\033[31m\]Ishtar:root#\[\033[0m\] " > > ;-/ That will be due to incorrect quoting. Which suggestion did you implement? There were several. > What version of

Here strings and pathname expansion

2011-02-13 Thread Jan Schampera
Hello world, I recently answered a question about using the asterisk mixed with redirection and other words. This also lead me to the documentation that states (REDIRECTION section): --- The word following the redirection operator in the following descriptions, unless otherwise noted,