Re: Bash-4.2-rc2 available for FTP

2011-02-02 Thread Mike Frysinger
On Wednesday, February 02, 2011 08:56:24 Chet Ramey wrote: > The second release candidate of bash-4.2 is now available with the URL > > ftp://ftp.cwru.edu/pub/bash/bash-4.2-rc2.tar.gz - braces.c:mkseq() is using an intmax_t type for the length in the asprintf call when it needs to be an int. a

Re: Bash-4.2-rc2 available for FTP

2011-02-05 Thread Mike Frysinger
On Wednesday, February 02, 2011 21:49:38 Chet Ramey wrote: > On 2/2/11 6:27 PM, Mike Frysinger wrote: > > - lib/glob/smatch.c needs externs.h for mbsmbchar. seems like externs.h > > could do with including bashtypes.h/command.h/general.h too since it > > needs basic ty

Re: Do more testing before a release?

2011-02-16 Thread Mike Frysinger
On Wednesday, February 16, 2011 23:51:16 Clark J. Wang wrote: > I know little about open source development process (and control?). I just > don't know where to get the bash code (like CVS, SVN respository) before > it's released. I think it's better to make it open to more people so > everyone can

empty quotes break pattern replacements in bash-4.2

2011-02-18 Thread Mike Frysinger
this simple code no longer works in bash-4.2: $ f=abc; echo ${f##""a} abc same goes for ${f//""a} and ${f%%""c}, and perhaps more operations removing the quotes, or quoting the single char in question, makes it work: $ f=abc; echo ${f##a} ${f##"a"} bc bc the original bug report uses variables in

Re: empty quotes break pattern replacements in bash-4.2

2011-02-18 Thread Mike Frysinger
On Friday, February 18, 2011 23:17:11 Chet Ramey wrote: > On 2/18/11 9:06 PM, Mike Frysinger wrote: > > this simple code no longer works in bash-4.2: > > $ f=abc; echo ${f##""a} > > abc > > same goes for ${f//""a} and ${f%%""c}, and per

Re: configure fails with gcc 4.6.0 LTO

2011-03-19 Thread Mike Frysinger
On Saturday, March 19, 2011 17:33:36 Chet Ramey wrote: > On 3/18/11 9:42 PM, Zeev Tarantov wrote: > > x86_64-pc-linux-gnu-gcc: error: \: No such file or directory > > x86_64-pc-linux-gnu-gcc: error: \: No such file or directory > > x86_64-pc-linux-gnu-gcc: error: \: No such file or directory > > x8

Re: configure fails with gcc 4.6.0 LTO

2011-03-21 Thread Mike Frysinger
On Mon, Mar 21, 2011 at 8:32 AM, Greg Wooledge wrote: > On Sat, Mar 19, 2011 at 09:52:05PM +, Zeev Tarantov wrote: >> configure:3122: checking for C compiler default output file name >> configure:3144: x86_64-pc-linux-gnu-gcc -g -O2 -flto >> -DDEFAULT_PATH_VALUE='"/usr/local/sbin:/usr/local/bin

Re: [Bash-announce] german misspelling

2011-03-23 Thread Mike Frysinger
On Wed, Mar 23, 2011 at 2:51 PM, Ralf Thielow wrote: > i've found a german misspelling in command "cd". > Where can i fix it? please use bug-bash, not bash-announce a bit odd announce isnt moderated so only people like Chet can announce ... -mike

Re: RFE: make [[ compatible with [ 'Option'?

2011-03-28 Thread Mike Frysinger
On Mon, Mar 28, 2011 at 2:25 PM, Greg Wooledge wrote: > In any case, I see no benefit to changing how [[ works.  A change would > just cause more confusion. and probably break many existing scripts -mike

heredocs incorrectly printed in for ((...)) loop

2011-04-12 Thread Mike Frysinger
seems to be just like the bug fixed in bash41-006, but with a diff for loop style. simple example: f() { for (( :; :; )) ; do cat < signature.asc Description: This is a digitally signed message part.

Re: heredocs incorrectly printed in for ((...)) loop

2011-04-29 Thread Mike Frysinger
On Tuesday, April 19, 2011 16:38:57 Chet Ramey wrote: > > seems to be just like the bug fixed in bash41-006, but with a diff for > > loop style. simple example: > > Try the attached patch and let me know the results. It fixes this > case and a couple of others. sorry for the delay ... that patch

Re: Bash source repository

2011-05-29 Thread Mike Frysinger
On Sunday, May 29, 2011 22:18:33 Bradley M. Kuhn wrote: > It's been two years since this discussion began and there have been requests older than that. you just found the most "recent". -mike signature.asc Description: This is a digitally signed message part.

Re: Permission denied to execute script that is world executable

2011-06-18 Thread Mike Frysinger
On Saturday, June 18, 2011 16:37:18 John Williams wrote: > Is this a bash bug, or intentional behavior? it's coming from the kernel, not bash post the output of `mount` and make sure that it doesnt have the "noexec" flag -mike signature.asc Description: This is a digitally signed message part.

Re: bug: return doesn't accept negative numbers

2011-08-08 Thread Mike Frysinger
On Monday, August 08, 2011 21:20:29 Chet Ramey wrote: > On 8/8/11 8:53 AM, Eric Blake wrote: > > However, you are on to something - since bash allows 'exit -1' as an > > extension, it should similarly allow 'return -1' as the same sort of > > extension. The fact that bash accepts 'exit -1' and 'ex

Re: Purge History of rm commands

2011-09-18 Thread Mike Frysinger
On Monday, September 19, 2011 01:18:02 Roger wrote: > I'm stumped on this as my history is in the format of: > > $ tail ~/.bash_history > #1316296633 > man bash > #1316296664 > bash -xv > #1316372056 > screen -rd > #1316375930 > exit > #1316392889 > exit > > Is there a method of purging the histo

[patch] fix parallel build issues with parse.y

2011-10-07 Thread Mike Frysinger
the current yacc rules allow multiple runs to generate the same files. usually this doesn't come up as the generated files are shipped in the tarball, but when you modify parse.y (applying a patch or developing or whatever), you can hit this problem. simple way of showing this: make -j y.

[patch] fix parallel build issues with syntax.c

2011-10-07 Thread Mike Frysinger
the current code generates a bunch of local libraries in subdirs and then links bash against that. those subdirs sometimes need version.h. so they have a rule to change back up to the parent dir and build version.h (which is fine). the trouble is that the top level objects and the subdirs are al

[patch] builtins: fix parallel build between top level targets

2011-10-31 Thread Mike Frysinger
the top level Makefile will recurse into the defdir for multiple targets (libbuiltins.a, common.o, bashgetopt.o, builtext.h), and since these do not have any declared interdependencies, parallel makes will recurse into the subdir and build the respective targets. nothing depends on common.o or bas

Re: Encrypted bashrc?

2011-11-11 Thread Mike Frysinger
On Friday 11 November 2011 00:48:59 Clark J. Wang wrote: > In my company all the people share a few of Solaris servers which use NIS > to manage user accounts. The bad thing is that some servers' root passwords > are well known so anybody can easily su to my account to access my files. > To protect

Re: How to directly modify $@?

2011-11-20 Thread Mike Frysinger
On Sunday 20 November 2011 11:54:42 Pierre Gaston wrote: > On Sun, Nov 20, 2011 at 6:43 PM, Peng Yu wrote: > > Hi, > > > > I don't see if there is a way to directly modify $@. I know 'shift'. > > But I'm wondering if there is any other way to modify $@. > > > > ~$ 1=x > > -bash: 1=x: command not

Re: Bash git repository on savannah

2011-11-24 Thread Mike Frysinger
On Wednesday 23 November 2011 23:23:43 Chet Ramey wrote: > I spent a little while messing around with git over the past couple of > days, and ended up updating the bash git repository on savannah > (http://git.savannah.gnu.org/cgit/bash.git to browse the sources). > Bash-4.2 patch 20 is the head of

Re: Bash git repository on savannah

2011-11-25 Thread Mike Frysinger
On Friday 25 November 2011 22:28:49 Chet Ramey wrote: > On 11/24/11 12:36 PM, Mike Frysinger wrote: > > On Wednesday 23 November 2011 23:23:43 Chet Ramey wrote: > >> I spent a little while messing around with git over the past couple of > >> days, and ended up updating

Re: Bash git repository on savannah

2011-11-27 Thread Mike Frysinger
On Sunday 27 November 2011 21:31:16 Chet Ramey wrote: > On 11/26/11 2:56 AM, Mike Frysinger wrote: > >> Thanks. I have bash sources going back a number of years, and I can get > >> them into git. It will just take me a while. > >> > >> The question

Re: popd always has return status 0

2011-12-02 Thread Mike Frysinger
On Thursday 01 December 2011 19:01:50 james.cuze...@lyraphase.com wrote: > Description: > popd does not appear to return a nonzero exit status when the directory > stack is empty anymore. works for me: $ echo $BASH_VERSION ; popd ; echo $? 4.2.20(1)-release bash: popd: directory stack empty

Re: return values of bash scripts

2011-12-20 Thread Mike Frysinger
On Tuesday 20 December 2011 17:18:16 kc123 wrote: > For example, my script below called crond.sh: > ... > content=`ps auxw | grep [c]rond| awk '{print $11}'` > ... > and output is: > CONTENT: /bin/bash /bin/bash crond > > Why are there 2 extra arguments printed (/bin/bash) ? because you grepped y

Re: bash, echo or openssl bug?

2012-01-03 Thread Mike Frysinger
On Tuesday 03 January 2012 08:48:27 nick humphrey wrote: > Description: > i dont know if the bug is a bash bug or openssl or echo, but when i > echo a string and pipe it to openssl, the > output comes on the same line as the prompt instead of a new line. it makes > the output hard to read b

excess braces ignored: bug or feature ?

2012-02-17 Thread Mike Frysinger
can't tell if this is a bug or a feature. FOO= BAR=bar : ${FOO:=${BAR} echo $FOO i'd expect an error, or FOO to contain those excess braces. instead, FOO is just "bar". -mike signature.asc Description: This is a digitally signed message part.

Re: RFE: allow bash to have libraries (was bash 4.2 breaks source finding libs in lib/filename...)

2012-02-29 Thread Mike Frysinger
On Wednesday 29 February 2012 17:53:21 Linda Walsh wrote: > Eric Blake wrote: > > On 02/29/2012 12:26 PM, Linda Walsh wrote: > >>> Any pathname that contains a / should not be subject to PATH searching. > > > > Agreed - as this behavior is _mandated_ by POSIX, for both sh(1) and for > > execlp(2)

Re: I think I may have found a possible dos attack vector within bash.

2012-03-23 Thread Mike Frysinger
On Tuesday 20 March 2012 15:55:18 Chet Ramey wrote: > or the even simpler > > f() > { > f | f & > > } > f i like the variant that uses ":" instead of "f": :(){ :|:& };: -mike signature.asc Description: This is a digitally signed message part.

Re: UTF-8 regression in bash version 4.2

2012-03-27 Thread Mike Frysinger
On Tuesday 27 March 2012 08:08:33 Pierre Gaston wrote: > On Tue, Mar 27, 2012 at 3:00 PM, Joachim Schmitz wrote: > > dennis.birkh...@rwth-aachen.de wrote: > > > > > > >> Bash Version: 4.2 > >> Patch Level: 24 > >> Release Status: release > > > > Interesting, seems the announcements dor patches 21

Re: status on $[arith] for eval arith vsl $((arith))??

2012-04-07 Thread Mike Frysinger
On Saturday 07 April 2012 16:45:55 Linda Walsh wrote: > Is it an accidental omission from the bash manpage? it's in the man page. read the "Arithmetic Expansion" section. -mike signature.asc Description: This is a digitally signed message part.

string replace with multibyte chars and extglob fails with bash-4.2

2012-04-21 Thread Mike Frysinger
first set your locale to something unicode based: export LC_ALL=en_US.UTF-8 then try the simple script (from Ulrich Müller): $ cat test.sh shopt -s extglob text="aaaäöü" echo "${text} ${text//?aa} ${text//\aaa}" with bash-4.1_p2, i get: aaaäöü äöü äöü but with bash-4.2_p8 ... 4.2_p24 (just what

[patch] fix building when readline is disabled

2012-04-22 Thread Mike Frysinger
if you disable readline, the complete.def code fails to build. simple patch below (not sure if it's correct, but at least gets the conversation going). -mike --- a/builtins/complete.def +++ b/builtins/complete.def @@ -49,6 +49,8 @@ $END #include +#ifdef READLINE + #include #include ".

Re: [patch] fix building when readline is disabled

2012-04-23 Thread Mike Frysinger
On Monday 23 April 2012 18:57:05 Chet Ramey wrote: > On 4/23/12 12:22 AM, Mike Frysinger wrote: > > if you disable readline, the complete.def code fails to build. simple > > patch below (not sure if it's correct, but at least gets the > > conversation going). > &

Re: [patch] fix building when readline is disabled

2012-04-23 Thread Mike Frysinger
On Monday 23 April 2012 20:08:26 Chet Ramey wrote: > On 4/23/12 7:40 PM, Mike Frysinger wrote: > > On Monday 23 April 2012 18:57:05 Chet Ramey wrote: > >> On 4/23/12 12:22 AM, Mike Frysinger wrote: > >>> if you disable readline, the complete.def code fails to build.

Re: [patch] fix building when readline is disabled

2012-04-24 Thread Mike Frysinger
On Tuesday 24 April 2012 08:23:04 Chet Ramey wrote: > On 4/24/12 12:00 AM, Mike Frysinger wrote: > >> OK, so you've stripped the local readline copy out of the source tree? > > > > yes > > > >> Then configured it to build with a system readli

Re: [patch] fix building when readline is disabled

2012-04-26 Thread Mike Frysinger
On Tuesday 24 April 2012 15:49:57 Chet Ramey wrote: > On 4/24/12 10:46 AM, Mike Frysinger wrote: > > On Tuesday 24 April 2012 08:23:04 Chet Ramey wrote: > >> On 4/24/12 12:00 AM, Mike Frysinger wrote: > >>>> OK, so you've stripped the local readline copy ou

Re: Severe Bash Bug with Arrays

2012-04-26 Thread Mike Frysinger
On Thursday 26 April 2012 23:47:39 Linda Walsh wrote: > Anything else you wanna tell me NEVER/ALWAYS to do? try ALWAYS being polite. but i guess that'll NEVER happen. oh well, thankfully kmail can auto-mute based on sender. -mike signature.asc Description: This is a digitally signed message pa

Re: Parallelism a la make -j / GNU parallel

2012-05-03 Thread Mike Frysinger
On Thursday 03 May 2012 16:12:17 John Kearney wrote: > I tend to do something more like this > > function runJobParrell { > local mjobCnt=${1} && shift > jcnt=0 > function WrapJob { > "${@}" > kill -s USR2 $$ > } neat trick. all my para

Re: Parallelism a la make -j / GNU parallel

2012-05-04 Thread Mike Frysinger
On Friday 04 May 2012 08:55:42 Chet Ramey wrote: > On 5/3/12 2:49 PM, Colin McEwan wrote: > > What I would really *like* would be an extension to the shell which > > implements the same sort of parallelism-limiting / 'process pooling' > > found in make or 'parallel' via an operator in the shell lan

Re: Parallelism a la make -j / GNU parallel

2012-05-04 Thread Mike Frysinger
On Friday 04 May 2012 12:44:32 Greg Wooledge wrote: > On Fri, May 04, 2012 at 12:41:03PM -0400, Mike Frysinger wrote: > > i wish there was a way to use `wait` that didn't block until all the pids > > returned. maybe a dedicated option, or a shopt to enable this, or a new &g

Re: Parallelism a la make -j / GNU parallel

2012-05-04 Thread Mike Frysinger
On Friday 04 May 2012 13:46:32 Andreas Schwab wrote: > Mike Frysinger writes: > > i wish there was a way to use `wait` that didn't block until all the pids > > returned. maybe a dedicated option, or a shopt to enable this, or a new > > command. > > > > for

Re: Parallelism a la make -j / GNU parallel

2012-05-04 Thread Mike Frysinger
On Friday 04 May 2012 15:02:27 John Kearney wrote: > Am 04.05.2012 20:53, schrieb Mike Frysinger: > > On Friday 04 May 2012 13:46:32 Andreas Schwab wrote: > >> Mike Frysinger writes: > >>> i wish there was a way to use `wait` that didn't block until all the >

Re: Parallelism a la make -j / GNU parallel

2012-05-04 Thread Mike Frysinger
On Friday 04 May 2012 16:17:02 Chet Ramey wrote: > On 5/4/12 2:53 PM, Mike Frysinger wrote: > > it might be a little racy (wrt checking cnt >= 10 and then doing a wait), > > but this is good enough for some things. it does lose visibility into > > which pids are live v

Re: Parallelism a la make -j / GNU parallel

2012-05-04 Thread Mike Frysinger
On Friday 04 May 2012 15:25:25 John Kearney wrote: > Am 04.05.2012 21:13, schrieb Mike Frysinger: > > On Friday 04 May 2012 15:02:27 John Kearney wrote: > >> Am 04.05.2012 20:53, schrieb Mike Frysinger: > >>> On Friday 04 May 2012 13:46:32 Andreas Schwab wrote:

Re: Parallelism a la make -j / GNU parallel

2012-05-05 Thread Mike Frysinger
On Saturday 05 May 2012 04:28:50 John Kearney wrote: > Am 05.05.2012 06:35, schrieb Mike Frysinger: > > On Friday 04 May 2012 15:25:25 John Kearney wrote: > >> Am 04.05.2012 21:13, schrieb Mike Frysinger: > >>> On Friday 04 May 2012 15:02:27 John Kearney wrote: >

Re: Parallelism a la make -j / GNU parallel

2012-05-05 Thread Mike Frysinger
On Saturday 05 May 2012 23:25:26 John Kearney wrote: > Am 05.05.2012 06:28, schrieb Mike Frysinger: > > On Friday 04 May 2012 16:17:02 Chet Ramey wrote: > >> On 5/4/12 2:53 PM, Mike Frysinger wrote: > >>> it might be a little racy (wrt checking cnt >= 10 and then

Re: Parallelism a la make -j / GNU parallel

2012-05-06 Thread Mike Frysinger
On Sunday 06 May 2012 03:25:27 John Kearney wrote: > Am 06.05.2012 08:28, schrieb Mike Frysinger: > > On Saturday 05 May 2012 23:25:26 John Kearney wrote: > >> Am 05.05.2012 06:28, schrieb Mike Frysinger: > >>> On Friday 04 May 2012 16:17:02 Chet Ramey wrote:

Re: Parallelism a la make -j / GNU parallel

2012-05-11 Thread Mike Frysinger
On Monday 07 May 2012 09:08:33 Chet Ramey wrote: > On 5/5/12 12:28 AM, Mike Frysinger wrote: > > On Friday 04 May 2012 16:17:02 Chet Ramey wrote: > >> On 5/4/12 2:53 PM, Mike Frysinger wrote: > >>> it might be a little racy (wrt checking cnt >= 10 and then doin

bash crashes when forking jobs and dynamically switching posix mode

2012-05-11 Thread Mike Frysinger
in light of the recent discussion, i thought i could switch posix mode on/off on the fly so that i restricted myself to this mode only when using `wait`. unfortunately, that randomly crashes bash :). simple test case: $ cat test.sh #!/bin/bash max=20 num=0 set -m #set -o posix trap ': $(( --nu

Re: bash crashes when forking jobs and dynamically switching posix mode

2012-05-11 Thread Mike Frysinger
On Friday 11 May 2012 13:37:58 Chet Ramey wrote: > On 5/11/12 11:43 AM, Mike Frysinger wrote: > > in light of the recent discussion, i thought i could switch posix mode > > on/off on the fly so that i restricted myself to this mode only when > > using `wait`. > > u

Re: bash crashes when forking jobs and dynamically switching posix mode

2012-05-11 Thread Mike Frysinger
On Friday 11 May 2012 14:25:08 Chet Ramey wrote: > On 5/11/12 11:43 AM, Mike Frysinger wrote: > > in light of the recent discussion, i thought i could switch posix mode > > on/off on the fly so that i restricted myself to this mode only when > > using `wait`. > > >

Re: Shell comment ignored

2012-08-16 Thread Mike Frysinger
On Thursday 16 August 2012 20:36:45 Keith Clifford wrote: > some_var=# What I thought was a comment. > > The '#' is eaten by the variable assignment so that some_var gets a null > value and the rest of the line is not treated like a command. this is correct (if sometimes confusing to people) beha

Re: bash 4.x filters out environmental variables containing a dot in the name

2012-08-21 Thread Mike Frysinger
On Tuesday 21 August 2012 07:45:49 Ondrej Oprala wrote: > unless this bug is already fixed in some way yes, please retest with very latest bash-4.2 and the released patchsets -mike signature.asc Description: This is a digitally signed message part.

BASH_COMMAND is incorrect when working with subshells and error traps

2012-08-22 Thread Mike Frysinger
consider this simple code: $ cat test.sh #!/bin/bash trap 'echo $BASH_COMMAND; exit 1' ERR set -e true (false) true when run, we see: $ ./test.sh true 1 this can be confusing when utilized with automatic backtraces :( even when using errtrace and debugtrace, BASH_COMMAND is incorrect -mike si

Re: BASH_COMMAND is incorrect when working with subshells and error traps

2012-08-22 Thread Mike Frysinger
On Wednesday 22 August 2012 12:30:11 Mike Frysinger wrote: > consider this simple code: > > $ cat test.sh > #!/bin/bash > trap 'echo $BASH_COMMAND; exit 1' ERR > set -e > true > (false) > true > > when run, we see: > $ ./test.sh > true 1 err,

[PATCH] bash: speed up `read -N`

2012-11-19 Thread Mike Frysinger
Rather than using 1 byte reads, use the existing cache read logic. This could be sped up more, but this change is not as invasive and should (hopefully) be fairly safe. Signed-off-by: Mike Frysinger --- builtins/read.def | 21 - externs.h | 1 + lib/sh/zread.c

Re: No such file or directory

2013-01-01 Thread Mike Frysinger
On Tuesday 01 January 2013 15:10:00 Chet Ramey wrote: > On 1/1/13 2:49 PM, Aharon Robbins wrote: > > Michael Williamson wrote: > >> I have a complaint. Apparently, when unknowingly attempting to run a > >> 32-bit executable file on a 64-bit computer, bash gives the error > >> message "No such file

Re: No such file or directory

2013-01-02 Thread Mike Frysinger
On Wednesday 02 January 2013 09:47:10 Roman Rakus wrote: > On 01/02/2013 03:31 PM, Eric Blake wrote: > > On 01/02/2013 07:28 AM, Michael Williamson wrote: > >> Thanks for your explanation. Now I have another question. > >> Why is the error message for ENOENT simply > >> "No such file or directory",

Re: No such file or directory

2013-01-02 Thread Mike Frysinger
On Wednesday 02 January 2013 07:07:49 Roman Rakus wrote: > On 01/02/2013 02:25 AM, Mike Frysinger wrote: > > On Tuesday 01 January 2013 15:10:00 Chet Ramey wrote: > >> On 1/1/13 2:49 PM, Aharon Robbins wrote: > >>> Michael Williamson wrote: > >>>> I h

interrupted system call when using named pipes on FreeBSD

2013-01-17 Thread Mike Frysinger
this is somewhat a continuation of this thread: http://lists.gnu.org/archive/html/bug-bash/2008-10/msg00091.html i've gotten more or less the same report in Gentoo: http://bugs.gentoo.org/447810 the simple test case is: $ cat test.sh #!/bin/bash while :; do (:)& (:)& (:)& (:)& (:)& (:)& (

Re: [PATCH] bash: speed up `read -N`

2013-01-17 Thread Mike Frysinger
On Monday 19 November 2012 19:46:17 Mike Frysinger wrote: > Rather than using 1 byte reads, use the existing cache read logic. > This could be sped up more, but this change is not as invasive and > should (hopefully) be fairly safe. ping ... -mike signature.asc Description: This is a

Re: [PATCH] bash: speed up `read -N`

2013-01-18 Thread Mike Frysinger
On Friday 18 January 2013 07:49:22 Chet Ramey wrote: > On 1/18/13 1:31 AM, Mike Frysinger wrote: > > On Monday 19 November 2012 19:46:17 Mike Frysinger wrote: > >> Rather than using 1 byte reads, use the existing cache read logic. > >> This could be sped up more, but thi

Re: interrupted system call when using named pipes on FreeBSD

2013-01-18 Thread Mike Frysinger
On Friday 18 January 2013 07:55:00 Chet Ramey wrote: > On 1/18/13 1:30 AM, Mike Frysinger wrote: > > this is somewhat a continuation of this thread: > > http://lists.gnu.org/archive/html/bug-bash/2008-10/msg00091.html > > > > i've gotten more or less the

Re: Q on Bash's self-documented POSIX compliance...

2013-01-27 Thread Mike Frysinger
On Sunday 27 January 2013 03:22:35 Pierre Gaston wrote: > On Sun, Jan 27, 2013 at 5:52 AM, John Kearney wrote: > > Am 27.01.2013 01:37, schrieb Clark WANG: > >> On Sat, Jan 26, 2013 at 1:27 PM, Linda Walsh wrote: > >>> I noted on the bash man page that it says it will start in posix > >>> complia

[PATCH 2/2] use AC_CHECK_TOOL with `ar` rather than AC_CHECK_PROG

2013-01-31 Thread Mike Frysinger
The TOOL variant will automatically search for a $host prefixed program (e.g. x86_64-pc-linux-gnu) rather than looking for `ar` only. This is useful when cross-compiling and it matches the behavior of the other tools that configure relies on (e.g. cc & ranlib). Signed-off-by: Mike Frysi

[PATCH 1/2] drop -i file

2013-01-31 Thread Mike Frysinger
Guessing it was added by accident while testing. Signed-off-by: Mike Frysinger --- -i | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 -i diff --git a/-i b/-i deleted file mode 100644 index e69de29..000 -- 1.8.0.2

random crashes when read interrupted by signal & clean up modifies terminal

2013-02-08 Thread Mike Frysinger
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/s

Re: random crashes when read interrupted by signal & clean up modifies terminal

2013-02-08 Thread Mike Frysinger
On Friday 08 February 2013 10:04:29 Chet Ramey wrote: > > Machine Type: x86_64-pc-linux-gnu > > > > Bash Version: 4.2 > > Patch Level: 42 > > Release Status: release > > > > Description: > > > > this simple testcase (distilled from [1]): > > Can you reproduce this using the latest devel branch co

Re: autoconf 2.69?

2013-03-27 Thread Mike Frysinger
On Wednesday 27 March 2013 11:44:32 Roman Rakus wrote: > Support for the ARM 64 bit CPU architecture (aarch64) was introduced in > autoconf 2.69. bash uses an earlier version of > autoconf, preventing its being built. are you talking about config.{sub,guess}, or something else ? -mike signature

Re: autoconf 2.69?

2013-03-27 Thread Mike Frysinger
On Wednesday 27 March 2013 14:02:57 Chet Ramey wrote: > On 3/27/13 1:07 PM, Mike Frysinger wrote: > > On Wednesday 27 March 2013 11:44:32 Roman Rakus wrote: > >> Support for the ARM 64 bit CPU architecture (aarch64) was introduced in > >> autoconf 2.69. bash

Re: Local variables overriding global constants

2013-04-03 Thread Mike Frysinger
On Wednesday 03 April 2013 09:34:18 Chet Ramey wrote: > A variable is declared readonly for a reason, and, since readonly variables > may not be assigned to, I don't believe you should be able to override a > readonly variable by declaring it local to a function. I did, however > reluctantly, allo

Re: Local variables overriding global constants

2013-04-03 Thread Mike Frysinger
On Wednesday 03 April 2013 21:38:19 Chet Ramey wrote: > On 4/3/13 12:31 PM, Mike Frysinger wrote: > > sounds like the fundamental limitation is that the person writing the > > code can't declare their intentions. after your compromise, they now > > can. if you follow

Re: Local variables overriding global constants

2013-04-04 Thread Mike Frysinger
On Thursday 04 April 2013 10:20:50 Chet Ramey wrote: > On 4/4/13 12:34 AM, Mike Frysinger wrote: > >>> would it be possible to enable a mode where you had to explicitly > >>> `declare +r` the var ? being able to "simply" do `local FOO` allows > >>

`declare -fp` mishandles heredoc with || statement

2013-05-31 Thread Mike Frysinger
simple code snippet: $ cat test.sh func() { cat > / < / < signature.asc Description: This is a digitally signed message part.

Re: `declare -fp` mishandles heredoc with || statement

2013-06-01 Thread Mike Frysinger
On Saturday 01 June 2013 17:07:33 Chet Ramey wrote: > On 5/31/13 10:37 PM, Mike Frysinger wrote: > > simple code snippet: > > $ cat test.sh > > func() { > > cat > / < > 11 > > EOF > > } > > declare -fp > > > > when run, we see the

Re: don't just seek to the next line if the script has been edited

2013-06-10 Thread Mike Frysinger
On Sunday 09 June 2013 16:59:15 Linda Walsh wrote: > jida...@jidanni.org wrote: > > All I know is there I am in emacs seeing things in the output of a > > running bash script that I want to tweak and get busy tweaking and saving > > changes before the script finishes, thinking that all this stuff w

Re: currently doable? Indirect notation used w/a hash

2013-06-10 Thread Mike Frysinger
On Monday 10 June 2013 18:20:44 Chris F.A. Johnson wrote: > On Mon, 10 Jun 2013, Linda Walsh wrote: > >> Point taken, but the only way such a string would be passed as a > >> variable name is if it was given as user input -- which would, > >> presumably, be sanitized before being used. Progra

Re: currently doable? Indirect notation used w/a hash

2013-06-11 Thread Mike Frysinger
On Tuesday 11 June 2013 03:23:29 Chris Down wrote: > On 11 Jun 2013 02:19, "Mike Frysinger" wrote: > > On Monday 10 June 2013 18:20:44 Chris F.A. Johnson wrote: > > > On Mon, 10 Jun 2013, Linda Walsh wrote: > > > >> Point taken, but the

`printf -v foo ""` does not set foo=

2013-06-16 Thread Mike Frysinger
simple test code: unset foo printf -v foo "" echo ${foo+set} that does not display "set". seems to have been this way since the feature was added in bash-3.1. -mike signature.asc Description: This is a digitally signed message part.

Re: `printf -v foo ""` does not set foo=

2013-06-24 Thread Mike Frysinger
On Monday 24 June 2013 16:13:01 Chet Ramey wrote: > On 6/17/13 1:27 AM, Mike Frysinger wrote: > > simple test code: > > unset foo > > printf -v foo "" > > echo ${foo+set} > > > > that does not display "set". seems to hav

Re: bash built-ins `true' and `false' undocumented

2013-09-28 Thread Mike Frysinger
On Friday 27 September 2013 16:20:57 Chris Down wrote: > On 2013-09-27 20:19, Roland Winkler wrote: > > Yet I think that the info pages are supposed to provide the definitive > > information about GNU software. So I still believe that it would be > > useful to list these builtins in the info pages

Re: [PATCH] bash: add socket server support

2013-11-26 Thread Mike Frysinger
On Thursday 14 November 2013 11:32:18 Cedric Blancher wrote: > On 13 November 2013 15:46, Joel Martin wrote: > > On Wed, Nov 13, 2013 at 6:39 AM, Irek Szczesniak wrote: > >> The other problems I see is: > >> How can the script get access to the data returned by accept()? Unlike > >> ksh93 bash4 has

Re: [PATCH] bash: add socket server support

2013-11-26 Thread Mike Frysinger
On Wednesday 13 November 2013 06:39:45 Irek Szczesniak wrote: > On Wed, Nov 13, 2013 at 7:35 AM, Piotr Grzybowski wrote: > > Hi Everyone, hi Joel, > > > > the idea is nice, and I can really see that it is useful, but I would > > > > be extremely careful with introducing those kind of changes, it

Re: [PATCH] bash: add socket server support

2013-11-26 Thread Mike Frysinger
On Thursday 14 November 2013 00:50:33 Piotr Grzybowski wrote: > I can think of an attack, just provide me with ip address of the host > :) and a root account password and login :) > > I agree that most systems have other abilities to do the (almost) > same, but yet, all systems (that is to say m

Re: Why bash doesn't have bug reporting site?

2014-01-13 Thread Mike Frysinger
On Tuesday 14 January 2014 01:31:01 Yuri wrote: > On 01/13/2014 12:32, Eric Blake wrote: > > A mailing list IS a bug reporting system. When something receives as > > low a volume of bug reports as bash, the mailing list archives are > > sufficient for tracking the status of reported bugs. It's no

Re: Bash-4.3-rc2 available for FTP

2014-01-30 Thread Mike Frysinger
general.c is missing traps.h include: general.c: In function ‘bash_tilde_expand’: general.c:991:3: warning: implicit declaration of function ‘any_signals_trapped’ [-Wimplicit-function-declaration] if (any_signals_trapped () < 0) unicode.c is missing stdio.h

Re: Bash-4.3-rc2 available for FTP

2014-01-30 Thread Mike Frysinger
On Thursday, January 30, 2014 10:48:34 Chet Ramey wrote: > o. The shell now handles backslashes in regular expression arguments to the >[[ command's =~ operator slightly differently, resulting in more >consistent behavior. hmm, i seem to be running into a bug here. the bash man page sugge

Re: Bash-4.3-rc2 available for FTP

2014-01-30 Thread Mike Frysinger
On Thursday, January 30, 2014 23:12:18 Andreas Schwab wrote: > Mike Frysinger writes: > > $ ./a.out 'a\-b' a-b > > regcomp(a\-b) = 0 > > The effect of \- in a BRE is undefined. yes, but that's kind of irrelevant for the point raised here. bash's =~ uses

Re: Bash-4.3-rc2 available for FTP

2014-01-30 Thread Mike Frysinger
On Thursday, January 30, 2014 23:53:55 Andreas Schwab wrote: > Mike Frysinger writes: > > yes, but that's kind of irrelevant for the point raised here. bash's =~ > > uses ERE, and passing in REG_EXTENDED to get ERE semantics with regcomp() > > yields the same

Re: pattern substitution expands "~" even in quoted variables

2014-03-08 Thread Mike Frysinger
On Fri 07 Mar 2014 16:15:05 Eduardo A. Bustamante López wrote: > dualbus@debian:~$ for shell in /bin/bash ~/local/bin/bash; do "$shell" -c > 'p=foo_bar; echo "${p/_/\~} $BASH_VERSION"'; done > foo\~bar 4.2.37(1)-release > foo~bar 4.3.0(2)-release you can get same behavior in <=bash-4.2 and >=bash-

Re: RFE: a way to echo the arguments with quoting

2014-03-09 Thread Mike Frysinger
On Sun 02 Mar 2014 10:12:04 Andreas Schwab wrote: > Dave Yost writes: > > I have an ugly function I wrote for zsh that does this: > > > > Sat 14:17:25 ip2 yost /Users/yost > > 1 634 Z% echo-quoted xyz \$foo 'a b c ' '\n' > > xyz '$foo' 'a b c ' '\n' > > Sat 14:17:53 ip2 yost /Users/yost > > 0 63

Re: When a hashed pathname is deleted, search PATH

2014-03-18 Thread Mike Frysinger
On Tue 18 Mar 2014 01:04:03 Linda Walsh wrote: > Chet Ramey wrote: > > Because the execution fails in a child process. You'd be able to fix it > > for that process, but would do nothing about the contents of the parent > > shell's hash table. > > > > The way the option works now is to check the h

Re: bash cross with installed readline

2014-03-18 Thread Mike Frysinger
On Sun 16 Mar 2014 13:30:55 Andrew Kosteltsev wrote: > When we build bash for some targets the INCLUDES variable for BUILD_CC > contains the path to target readline headers. This path points to the > target headers which not preferred for utilities which prepared for build > machine. > > Also when

Re: When a hashed pathname is deleted, search PATH

2014-03-18 Thread Mike Frysinger
On Tue 18 Mar 2014 21:11:07 Linda Walsh wrote: > Mike Frysinger wrote: > > On Tue 18 Mar 2014 01:04:03 Linda Walsh wrote: > >> Chet Ramey wrote: > >>> Because the execution fails in a child process. You'd be able to fix it > >>> for that process,

Re: Special built-ins not persisting assignments

2014-03-25 Thread Mike Frysinger
On Tue 25 Mar 2014 00:39:18 Pollock, Wayne wrote: > $ echo $BASH_VERSION > 4.2.45(1)-release > > $ unset foo > > $ foo=bar : > > $ echo $foo > > > $ > > === > > According to POSIX/SUS issue 7, assignments for special builtins > should persist. So the output should be ``bar''. >

Re: ls doesn't work in if statements in bash 4.3

2014-03-26 Thread Mike Frysinger
On Wed 26 Mar 2014 17:45:33 billyco...@gmail.com wrote: > I thought about the changes I have made recently and I had added the > following into my .bashrc: > > eval $(dircolors -b ~/.dir_colors) > > I commented it out, and now everything works. I think it's still a bug, > though I know how to fi

easier construction of arrays

2014-03-27 Thread Mike Frysinger
On Thu 27 Mar 2014 08:01:45 Greg Wooledge wrote: > files=() > while IFS= read -r -d '' file; do > files+=("$file") > done < <(find . -iname '*.mp3' ! -iname '*abba*' -print0) i've seen this construct duplicated so many times :(. i wish we had a native option for it. maybe something like:

Re: easier construction of arrays

2014-03-27 Thread Mike Frysinger
On Thu 27 Mar 2014 19:15:13 Pierre Gaston wrote: > On Thu, Mar 27, 2014 at 5:53 PM, Mike Frysinger wrote: > > On Thu 27 Mar 2014 08:01:45 Greg Wooledge wrote: > > > files=() > > > while IFS= read -r -d '' file; do > > > > > > file

Re: ls doesn't work in if statements in bash 4.3

2014-03-27 Thread Mike Frysinger
On Fri 28 Mar 2014 10:23:17 Chris Down wrote: there's really nothing to add to Chris's wonderful post :) -mike signature.asc Description: This is a digitally signed message part.

  1   2   3   4   >