Associative array assignment crashes Bash interpreter

2014-02-02 Thread ben
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: 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/share/locale' -DPACKA

checkwinsize should be the default

2007-12-18 Thread ben
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='ba

build failure with enable-static-link

2016-09-16 Thread Ben
Hello, bash-4.4 doesn't build with --enable-static-link. Buidling with an additional --without-bash-malloc makes it work. /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libc.a(malloc.o): In function `free': (.text+0x5f20): multiple definition of `free' ./lib/malloc/libmalloc.a(malloc.o)

PS0 issue with escape sequence

2016-09-16 Thread Ben
Hello, using bash-4.4, setting PS0 to '\[\033[1;36m\]started at \t\[\033[0m\]\n' makes it output PS0 with a non-printable \x01\x02 prefix and suffix. 01 02 73 74 61 72 74 65 64 20 61 74 20 30 33 3a |..started at 03:| 0010 31 38 3a 30 37 01 02 0a |18:07..

Re: Bash source repository

2011-05-29 Thread Ben Pfaff
d on the change that occurred. It is a waste of time to use "git mv" if some other way is easier. -- Ben Pfaff http://benpfaff.org

Re: Built-in printf Sits Awkwardly with UDP.

2011-07-21 Thread Ben Pfaff
ond after the last > write. Unfortunately, there's no such thing in stdio. That sounds like a bad design for a log file anyhow. Log entries should get flushed quickly, otherwise you lose the last few log entries before a segfault or signal and have fewer clues about the cause. -- Ben Pfaff http://benpfaff.org

Re: Parallelism a la make -j / GNU parallel

2012-05-05 Thread Ben Pfaff
Colin McEwan writes: > I frequently find myself these days writing shell scripts, to run on > multi-core machines, which could easily exploit lots of parallelism (eg. a > batch of a hundred independent simulations). > > The basic parallelism construct of '&' for async execution is highly > expres

Buffer overflow bug in Bash

2013-12-19 Thread Ben Okopnik
etc/hadoop/conf/`basename $n`" if [ -n "${x[$f]}" ]; then for m in ${foo[$n]}; do echo; done fi done ------ Best regards, -- Ben Okopnik

Segfault in bash 3.0

2005-11-14 Thread Ben Cotterell
bash version 3.0 crashes with a segmentation fault when running this script: #!/bin/bash # Running this script crashes bash version 3.0 (and 2.05b.0(1)) function foo { local w local c c=([EMAIL PROTECTED] and stuff) echo [EMAIL PROTECTED] }

[Patch] Fix QNX biuld error

2006-09-23 Thread Ben Gardner
There is an error on line 29 of variables.c in bash-3.1. It should read: #include not #include Attached is a patch that fixes this, although it would be easier to fix it manually. Ben --- bash-3.1/variables.c2005-11-12 20:22:37.0 -0600 +++ bash-3.1.orig/variables.c 2006-09

Re: Memory leak when catting(/sedding/...) large binary files with backticks

2008-05-12 Thread Ben Taylor
he inner workings of bash, maybe it's working as intended. I just figured since it was eating my memory and not making that memory available to other programs when it was ^C'd (as you would do when you realised you'd inadvertently catted or sedded a 3GB binary file) that I'd report it. Ben

functions, process substitution, bad file descriptor

2009-02-27 Thread Ben Hyde
I ran into a problem using process substitution. A much reduced version is show below. The function f2 has the problem, the function f1 does not. Are there is some facts about the life cycle of the files created by process substitution I don't appreciate? - ben bash-3.2$ ls -l /tm

Re: functions, process substitution, bad file descriptor

2009-02-28 Thread Ben Hyde
On Feb 27, 2009, at 4:02 PM, Chet Ramey wrote: Ben wrote: I ran into a problem using process substitution This will be fixed in the next version. thank you! ``The lyf so short, the craft so long to lerne.'' - Chaucer i've noticed

words in COMPWORDS vs. words in COMPREPLY

2010-07-21 Thread Ben Pfaff
ue,...", and this seemingly odd behavior is making life difficult. Thanks, Ben. -- Ben Pfaff http://benpfaff.org

Re: Verbatim pasting

2010-08-10 Thread Ben Pfaff
Andre Majorel writes: > Binding printable ASCII characters to readline functions is > convenient but it can bite you when you paste text into a shell. This also bites me from time to time when I cut-and-paste a command from an editor window into a bash terminal window. If the line that I cut-an

bash feature request: pushd -v, popd -v

2005-07-15 Thread Ben Horowitz
ss of whether this request is feasible. :) Thanks, Ben Horowitz P.S. Here is version information - it is possible that this feature has been added to a newer version of bash than I have: $ bash --version GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu) Copyright (C) 2002 Free Softwa

wait -n shouldn't collect multiple processes

2019-03-23 Thread Ben Elliston
of the available (terminated) processes. If there are multiple, they can be collected by calling wait -n multiple times or calling wait without '-n'. Ben

Re: wait -n shouldn't collect multiple processes

2019-03-23 Thread Ben Elliston
pletes, another one is started immediately. If I start (say) 10 processes and then wait on the first, I may have chosen the longest running process. Ben signature.asc Description: PGP signature

Re: wait -n shouldn't collect multiple processes

2019-03-24 Thread Ben Elliston
trying to implement something akin to 'make -j' in bash. Make will stop if any of the child processes fail. Cheers, Ben signature.asc Description: PGP signature

Re: wait -n shouldn't collect multiple processes

2019-03-25 Thread Ben Elliston
er? Cheers, Ben signature.asc Description: PGP signature

Re: wait -n shouldn't collect multiple processes

2019-03-25 Thread Ben Elliston
thinking that an exxplanation about the interactive vs non-interactive behaviour might be useful. Cheers, Ben signature.asc Description: PGP signature