Troublesome checkwinsize (none) behaviour

2013-07-12 Thread werner
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc -I/home/abuild/rpmbuild/BUILD/bash-4.2 -L/home/abuild/rpmbuild/BUILD/bash-4.2/../readline-6.2 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -D

Re: Chained command prints password in Clear Text and breaks BASH Session until logout

2013-07-12 Thread Andreas Schwab
Jason Sipula writes: > This fixed bash. So it does appear MySQL is disabling echo.Strange that it > does not re-enable it after it's finished running. I'll take this up with > the mysql folks. Most likely the second instance found the terminal already set to -echo after the first instance has st

Re: Troublesome checkwinsize (none) behaviour

2013-07-12 Thread Chet Ramey
On 7/12/13 5:57 AM, wer...@suse.de wrote: > Bash Version: 4.2 > Patch Level: 42 > Release Status: release > > Description: > As subject says: > * If checkwinsize is _not_ set the bash does not update the > internal LINES and COLUMNS varaible during a command/job is >

Re: Chained command prints password in Clear Text and breaks BASH Session until logout

2013-07-12 Thread Jason Sipula
So, in other words... User Error. I guess it makes sense why mysql would get grumpy if both mysqldump and mysql were both attempting to read from stdin, /dev/tty or whatever at the same time. I had [incorrectly] assumed that mysqldump would request input first, then mysql would after mysqldump cl

Re: Troublesome checkwinsize (none) behaviour

2013-07-12 Thread Andreas Schwab
Chet Ramey writes: > Bash does not export LINES or COLUMNS. But it is exported by other users of libreadline who don't override sh_set_lines_and_columns. So it is still a readline bug. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5

Re: Troublesome checkwinsize (none) behaviour

2013-07-12 Thread Chet Ramey
On 7/12/13 11:10 AM, Andreas Schwab wrote: > Chet Ramey writes: > >> Bash does not export LINES or COLUMNS. > > But it is exported by other users of libreadline who don't override > sh_set_lines_and_columns. So it is still a readline bug. Maybe it should be an option, then. I disagree that it

quotes in bash script

2013-07-12 Thread gscantlen
I want a script to execute the command: ls -alst "dir with spaces" The script looks like this : #! /bin/bash PARAMS_FOR_LS="-alst \"dir with spaces\"" echo $PARAMS_FOR_LS ls $PARAMS_FOR_LS when I execute the script: bash -x script.sh I get: + PARAMS_FOR_LS='-alst "dir with space

Re: quotes in bash script

2013-07-12 Thread Chris F.A. Johnson
On Fri, 12 Jul 2013, gscant...@comcast.net wrote: I want a script to execute the command: ls -alst "dir with spaces" The script looks like this : #! /bin/bash PARAMS_FOR_LS="-alst \"dir with spaces\"" echo $PARAMS_FOR_LS ls $PARAMS_FOR_LS $PARAMS_FOR_LS is subject to word splitting.

Re: quotes in bash script

2013-07-12 Thread Pierre Gaston
On Fri, Jul 12, 2013 at 9:48 PM, wrote: > I want a script to execute the command: > ls -alst "dir with spaces" > > > The script looks like this : > #! /bin/bash > > PARAMS_FOR_LS="-alst \"dir with spaces\"" > > echo $PARAMS_FOR_LS > > ls $PARAMS_FOR_LS > > > > when I execute the script: > bash -x