Re: scripts stop running in bg in 4.0.35, and need to be toggled fg-bg to complete

2010-02-06 Thread Miroslav Rovis
Four hours, no replies yet. So I decided to post a comment on: http://forums.gentoo.org/viewtopic-p-6162718.html Thanx if someone with more profound GNU bash programming understanding finds a fix or an explanation and a workaround for this...

scripts stop running in bg in 4.0.35, and need to be toggled fg-bg to complete

2010-02-06 Thread Miroslav Rovis
(I wasn't able to send this with bashbug) Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' - DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gn

scripts stop running in bg in 4.0.35, and need to be toggled fg-bg to complete

2010-02-06 Thread Miroslav Rovis
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/sha

Re: What motivates HISTCONTROL=ignorespace ?

2010-02-06 Thread Chet Ramey
On 2/6/10 6:38 AM, Jon Seymour wrote: > Is it to allow users who may have reason to type sensitive commands a > trivial means to suppress such commands from their command history? Yes. Not just sensitive commands, but any command for any reason. -- ``The lyf so short, the craft so long to ler

Re: Passing variables to and from custom programs

2010-02-06 Thread DennisW
On Feb 6, 5:37 pm, djackn wrote: > May I used the following in a bash script to pass variables to myIpExec? > >     Result = myIpExec(${IPaddr1} ${IPaddr2} ${IPaddr3} ${IPaddr4}) > > myIpExec is a c program that normally uses scanf to prompt the user > for the IP addresses and returns 0 or 1. > I

Passing variables to and from custom programs

2010-02-06 Thread djackn
May I used the following in a bash script to pass variables to myIpExec? Result = myIpExec(${IPaddr1} ${IPaddr2} ${IPaddr3} ${IPaddr4}) myIpExec is a c program that normally uses scanf to prompt the user for the IP addresses and returns 0 or 1. I plan to use the script to test the program

What motivates HISTCONTROL=ignorespace ?

2010-02-06 Thread Jon Seymour
I too was unaware of the HISTCONTROL option, but now that I know what it does, I am intrigued by the rationale for HISTCONTROL=ignorespace? In other words, what motivated the inclusion of handling for this option specifically? Is it to allow users who may have reason to type sensitive commands a t

Re: command not put into history if it starts with space

2010-02-06 Thread Paul Stansell
Mike, Thanks, I was unaware of HISTCONTROL. Paul On 6 February 2010 09:06, Jan Schampera wrote: > Mike Frysinger schrieb: > >>> When using the bash shell in an xterm or rxvt terminals at least, >>> commands executed which start with a space, eg " ls" are not added to >>> the command line hist

Re: command not put into history if it starts with space

2010-02-06 Thread Jan Schampera
Mike Frysinger schrieb: >> When using the bash shell in an xterm or rxvt terminals at least, >> commands executed which start with a space, eg " ls" are not added to >> the command line history and so are not accessible by ctrl-p. > > this is by design > -mike This is controlled by the HISTCONTR