test builtin of bash is not using nanosecond timestamps

2012-03-06 Thread werner
Configuration Information [Automatically generated, do not change]: Machine: i586 OS: linux-gnu Compiler: gcc -I/usr/src/packages/BUILD/bash-4.2 -L/usr/src/packages/BUILD/bash-4.2/../readline-6.2 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYP

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

Different COMP_WORDS array values with exactly the same commandline

2009-01-30 Thread werner
Configuration Information [Automatically generated, do not change]: Machine: i586 OS: linux-gnu Compiler: gcc -I/usr/src/packages/BUILD/bash-3.2 -L/usr/src/packages/BUILD/bash-3.2/../readline-5.2 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYP

Missed save_parser_state() function call in pcomplete.c

2009-03-04 Thread werner
Configuration Information [Automatically generated, do not change]: Machine: i586 OS: linux-gnu Compiler: gcc -I/usr/src/packages/BUILD/bash-4.0 -L/usr/src/packages/BUILD/bash-4.0/../readline-6.0 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYP

unexpected EOF while looking for matching `)'

2009-03-04 Thread werner
Configuration Information [Automatically generated, do not change]: Machine: i586 OS: linux-gnu Compiler: gcc -I/usr/src/packages/BUILD/bash-4.0 -L/usr/src/packages/BUILD/bash-4.0/../readline-6.0 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYP

[Patch] Crash on forbidden subdirectories with globstar shell option

2009-04-21 Thread werner
Configuration Information [Automatically generated, do not change]: Machine: i586 OS: linux-gnu Compiler: gcc -I/usr/src/packages/BUILD/bash-4.0 -L/usr/src/packages/BUILD/bash-4.0/../readline-6.0 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYP

Support for file ACL -- Access Control Lists [Patch included]

2009-06-04 Thread werner
Configuration Information [Automatically generated, do not change]: Machine: i586 OS: linux-gnu Compiler: gcc -I/usr/src/packages/BUILD/bash-4.0 -L/usr/src/packages/BUILD/bash-4.0/../readline-6.0 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYP

Memory leak within read builtin in both bash 4.0.x and 3.[12].x

2009-07-01 Thread werner
Configuration Information [Automatically generated, do not change]: Machine: i586 OS: linux-gnu Compiler: gcc -I/usr/src/packages/BUILD/bash-4.0 -L/usr/src/packages/BUILD/bash-4.0/../readline-6.0 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYP

Meta mode in modern XTerm is not configurable in readline library

2009-09-30 Thread werner
Configuration Information [Automatically generated, do not change]: Machine: i586 OS: linux-gnu Compiler: gcc -I/usr/src/packages/BUILD/bash-4.0 -L/usr/src/packages/BUILD/bash-4.0/../readline-6.0 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYP

bash accepts script with incorrect syntax and goes into infinite loop

2009-10-09 Thread werner
Configuration Information [Automatically generated, do not change]: Machine: i586 OS: linux-gnu Compiler: gcc -I/usr/src/packages/BUILD/bash-4.0 -L/usr/src/packages/BUILD/bash-4.0/../readline-6.0 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYP

Signal handler may hang in futex_wait on SMP

2010-02-25 Thread werner
Configuration Information [Automatically generated, do not change]: Machine: i586 OS: linux-gnu Compiler: gcc -I/usr/src/packages/BUILD/bash-4.1 -L/usr/src/packages/BUILD/bash-4.1/../readline-6.1 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYP

Loop within trap handling

2018-03-28 Thread werner
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-suse-linux-gnu' -DCONF_VENDOR='suse' -DLOCALEDIR='/usr/share/locale' -DP

Hidden directories breaks path expansions

2019-03-04 Thread werner
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection

LINENO does sometimes not correspond to real line number

2019-04-03 Thread werner
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection

Named fifo's causing hanging bash scripts

2015-01-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.3 -L/home/abuild/rpmbuild/BUILD/bash-4.3/../readline-6.3 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -D

popd controlled free (Segmentation fault) with bash 4.2.47, 4.3.48, and 4.4.5

2016-11-21 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

Syntax error near unexpected token `newline' within loops

2017-04-24 Thread werner
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc -I/home/abuild/rpmbuild/BUILD/bash-4.4 -L/home/abuild/rpmbuild/BUILD/bash-4.4/../readline-7.0 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -D

Escape newline within quotes in commands

2006-03-03 Thread Werner Fink
BASH PATCH REPORT = Bash-Release: 3.1.5 Bug-Description: Lines like g31:bash-3.0 > x=`echo A B C | sed 's/ /\\ > /g'` g31:bash-3.0 > echo "$x" A B C do not work with current bash 3.1.5. This breaks scr

Re: trouble of gxditview with man bash

2005-06-23 Thread Werner LEMBERG
viewer do a much better job today. Good looking output for gxditview can be produced with -TX75 or -TX100 (or its variants -TX75-12 and -TX100-12). Werner ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Extrem memory consumption during unicode test with alt-array implementation

2022-10-06 Thread Dr. Werner Fink
STAT START TIME COMMAND [...] 399 6641 24.9 87.4 14690520 7073924 pts/0 R+ 13:37 0:18 /home/abuild/rpmbuild/BUILD/bash-5.2/bash ./unicode1.sub Now building without --enable-alt-array-implementation Werner -- "Having a smoking section in a restaurant is like having a peei

Re: [bug-bash] segfault in for(()) loop

2023-07-25 Thread Dr. Werner Fink
ault in 'for ((...))' loop > > > > Repeat-By: > > z='';for((;$z;));do echo;done > > without spaces in ;$z; > > in bash 5.1.4 -- works ok, in bash 5.2.15 -- segmentation fault > > Thanks for the report. This was fixed several mo

Re: [bug-bash] Bash-5.2 Patch 22

2024-01-16 Thread Dr. Werner Fink
VEL 21 > > #endif /* _PATCHLEVEL_H_ */ > --- 26,30 > looks for to find the patch level (for the sccs version string). */ > > ! #define PATCHLEVEL 22 > > #endif /* _PATCHLEVEL_H_ */ > Hi, what is with the readline82-008, readline82-009, and readline82-010 patches? Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr signature.asc Description: PGP signature

Re: [bug-bash] Bash-5.2 Patch 22

2024-01-16 Thread Dr. Werner Fink
On 2024/01/16 09:27:19 -0500, Chet Ramey wrote: > On 1/16/24 4:00 AM, Dr. Werner Fink wrote: > > > what is with the readline82-008, readline82-009, and readline82-010 > > patches? > > What about them? Should those be part also of trhe bash52 patches as well? -- &quo

Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history

2011-03-08 Thread Dr. Werner Fink
r way the bash could make use use an extra (sig)longjmp()/(sig)setjmp() after increasing an atomic control variable in the signal handlers for SIGHUP/SIGTERM to run all things done short before exit. Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr

Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history

2011-03-08 Thread Dr. Werner Fink
On Tue, Mar 08, 2011 at 11:29:22AM +0100, Werner Fink wrote: > On Mon, Mar 07, 2011 at 10:22:55PM -0500, Chet Ramey wrote: > > > > One thing that has changed is that an interactive shell will no longer > > attempt to write the history file if it's killed by a signal,

Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history

2011-03-08 Thread Dr. Werner Fink
On Tue, Mar 08, 2011 at 03:07:13PM +0100, Roman Rakus wrote: > On 03/08/2011 12:32 PM, Dr. Werner Fink wrote: > >Something like the attached patch. > > > Seems it doesn't work. I have applied your patch, run that bash in > gnome-terminal, close the terminal. In gdb I set

Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history

2011-03-08 Thread Dr. Werner Fink
On Tue, Mar 08, 2011 at 11:19:25AM -0500, Chet Ramey wrote: > On 3/8/11 5:29 AM, Dr. Werner Fink wrote: > > >> One thing that has changed is that an interactive shell will no longer > >> attempt to write the history file if it's killed by a signal, since that >

Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history

2011-03-08 Thread Dr. Werner Fink
o call > from a signal handler, yes, that's what it means. OTOH, this shows > promise as a solution. OK, that means only for systems with HAVE_POSIX_SIGSETJMP defined. At least this provides a (local) solution here Werner -- "Having a smoking section in a restaurant

Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history

2011-03-09 Thread Dr. Werner Fink
he patch does its work, thanks a lot. > Yes, I know that it's not 100% safe and will run unsafe functions from a > signal handler. I will devise a better fix for later, but that will > require changes to readline (so it can catch SIGHUP) that will have to > wait. Werner --

Warning: the patch for xdupmbstowcs2 to avoid loops breaks expansion

2011-03-22 Thread Dr. Werner Fink
/foo.b > echo './aaa/foo'* ./aaa/foo* in an arbitrary UTF-8 locale Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr

Re: [bug-bash] Troublesome checkwinsize (none) behaviour

2013-07-15 Thread Dr. Werner Fink
, /etc/csh.login and /etc/ksh.kshrc... Not for normal login sessions or do you work on/with an iSeries? > Perhaps one of those is propagating to the error cases mentioned? No it is not. Werner -- "Having a smoking section in a restaurant is like having a peeing section in

bash $'foo' quoting problem

2006-02-24 Thread Dr. Werner Fink
Hi, the bash-3.1.5 has a problem with quoting which leads to a different output of echo $(set -- $'a b'; echo $#) and echo "$(set -- $'a b'; echo $#)" The patch below fix t

Re: [bash-bug] contents of whole arrays dissapears leaving while read loop

2009-03-26 Thread Dr. Werner Fink
c, since every part of the pipe runs in an own subshell (the > first one runs in the "current shell"). This behaviour is also *not* > limited to arrays. > > This is not a bug, this is a consequence of Bash's design. Yep ... nevertheless a side mark: ksh can do ;) W

Bash loadable plugins ... minimal header file?

2009-05-28 Thread Dr. Werner Fink
does a minimal header looks like? It should include the API for the argument handling and clearly the declarations found in builtins.h after the includes. My wish is to have a few minimal header files without installing nearly all header files. Comments, hints? Werner -- "Hav

Re: [bash-bug] bash accepts script with incorrect syntax and goes into infinite loop

2009-10-09 Thread Dr. Werner Fink
And "read NAME; echo NAME=$NAME" is a compound-list. So I was deceived by the > formatting, I think you are right. Thanks for correcting me. I also agree ( even if I'm the reporter :) now I can close the bug reprort here, thanks. Werner -- "Having a smoking

Re: [bash-bug] Crash on completion

2010-03-09 Thread Dr. Werner Fink
*)NULL; + return ((char *)NULL); + } + while (val = glob_matches[local_index++]) { if (executable_or_directory (val)) as this also include the check found for (state == 0) case a few lines above the affected line? Werner -- "Having a smoking section i

Re: [bash-bug] Can arithmetic evaluation trap more than just division by zero?

2010-04-06 Thread Dr. Werner Fink
00462cd5 in exp2 () at expr.c:761 761 val1 /= val2; (gdb) print val1 $1 = -9223372036854775808 (gdb) print val2 $2 = -1 which is strange. Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr

A note for read builtin

2010-06-18 Thread Dr. Werner Fink
7198 read(0, as now is visible the last command in the pipe sequence done in the bash is a real sub process whereas in the ksh it is not. The question rises: Why does the bash require a sub peocess/shell for the final command of a pipe sequence. Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr

Re: A note for read builtin

2010-06-23 Thread Dr. Werner Fink
On Tue, Jun 22, 2010 at 04:50:54PM -0400, Chet Ramey wrote: > On 6/18/10 10:05 AM, Dr. Werner Fink wrote: > > > as now is visible the last command in the pipe sequence done > > in the bash is a real sub process whereas in the ksh it is not. > > > > The question rise

Re: [bash-bug] A note for read builtin

2010-06-23 Thread Dr. Werner Fink
On Wed, Jun 23, 2010 at 10:00:12AM +0200, Werner Fink wrote: > On Tue, Jun 22, 2010 at 04:50:54PM -0400, Chet Ramey wrote: > > On 6/18/10 10:05 AM, Dr. Werner Fink wrote: > > > > > as now is visible the last command in the pipe sequence done > > > in the bash is

Re: [bash-bug] A note for read builtin

2010-06-24 Thread Dr. Werner Fink
On Wed, Jun 23, 2010 at 12:08:20PM +0200, Werner Fink wrote: > > Yet an other version of the patch to avoid trouble with the > coproc builtin tested out in tests/coproc.tests. There is one > difference more with tests/redir.tests at > > exit 3 | $EXIT > $TMPDIR/

Re: [bash-bug] A note for read builtin

2010-06-25 Thread Dr. Werner Fink
On Thu, Jun 24, 2010 at 01:18:25PM -0400, Chet Ramey wrote: > On 6/23/10 6:08 AM, Dr. Werner Fink wrote: > > > Yet an other version of the patch to avoid trouble with the > > coproc builtin tested out in tests/coproc.tests. There is one > > difference more with tests/re

Re: [bash-bug] parsing error with heredoc and command substitution

2010-07-15 Thread Dr. Werner Fink
On Tue, Jul 13, 2010 at 01:51:31PM -0400, Alex Khesin wrote: > Configuration Information: > 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' -DLOCAL

Re: [bash-bug] PIPESTATUS always returns only a single element

2010-08-13 Thread Dr. Werner Fink
IPESTATUS = ${PIPESTATUS[*]} > \$? = $?" > echo "expect: PIPESTATUS = 0 \$? = 0; got: PIPESTATUS = ${PIPESTATUS[*]} \$? > = $?" > # > # End of script > > None of the 'got' results 'expect'ing multiple PIPESTATUS results work. Question: co

Re: [bash-bug] [bash-bug] PIPESTATUS always returns only a single element

2010-08-16 Thread Dr. Werner Fink
On Fri, Aug 13, 2010 at 12:18:23PM +0200, Werner Fink wrote: > On Thu, Aug 12, 2010 at 05:37:55PM -0500, lstee...@gmail.com wrote: > > #!/bin/bash > > # > > # A script to test PIPESTATUS and pipefail > > # > > echo " cmd: set +o pipefail" > > ech

Re: [bash-bug] Fix testsuite errors due to shell quoted parameter expansion issue.

2010-08-17 Thread Dr. Werner Fink
Solaris /bin/sh got that right). Just talk with Michal Hlavinka for this as he uses the ksh/ast developers mailing list. Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr

Which commit for a bug in 4.3.48 which is fixed in 4.4.23

2018-09-21 Thread Dr. Werner Fink
Hi, with 4.3.48 the line T="";echo ">${T//*/ }<" leads to >< but with 4.4.23 the correct result is given back > < in the git repro I do not find any useful login entry for this Werner -- "Having a smoking section in a restaurant is

Re: [bug-bash] Which commit for a bug in 4.3.48 which is fixed in 4.4.23

2018-09-24 Thread Dr. Werner Fink
On Fri, Sep 21, 2018 at 01:11:38PM +0200, Dr. Werner Fink wrote: > Hi, > > with 4.3.48 the line > > T="";echo ">${T//*/ }<" > > leads to > > >< > > but with 4.4.23 the correct result is given back > >

Re: [bug-bash] Which commit for a bug in 4.3.48 which is fixed in 4.4.23

2018-09-25 Thread Dr. Werner Fink
On Mon, Sep 24, 2018 at 01:52:54PM -0400, Chet Ramey wrote: > On 9/24/18 1:50 PM, Eduardo Bustamante wrote: > > On Mon, Sep 24, 2018 at 4:09 AM Dr. Werner Fink wrote: > > (...) > >> Reconstructed the attached patch ... seems to work > > > > Out of curiosity,

Re: [bug-bash] Bash-5.0-beta2 available for download

2018-11-29 Thread Dr. Werner Fink
On Tue, Nov 27, 2018 at 01:24:38PM -0500, Chet Ramey wrote: > The second beta release of bash-5.0 is now available with the URL > > ftp://ftp.cwru.edu/pub/bash/bash-5.0-beta2.tar.gz > I see this [ 2709s] seq.c: In function 'long_double_format': [ 2709s] seq.c:166:9: error: expected ';' before 'r

Re: [bug-bash] Bash-5.0-beta2 available for download

2018-11-30 Thread Dr. Werner Fink
On Thu, Nov 29, 2018 at 08:52:58AM -0800, Chet Ramey wrote: > On 11/29/18 7:09 AM, Dr. Werner Fink wrote: > > On Tue, Nov 27, 2018 at 01:24:38PM -0500, Chet Ramey wrote: > >> The second beta release of bash-5.0 is now available with the URL > >> > >> ftp://

Re: Hidden directories breaks path expansions

2019-03-07 Thread Dr. Werner Fink
t; exp-out || framework_failure_ LC_ALL=en_US.utf8 sed $(printf 's/^/\\L\233\375\\\200/') in > out 2> err compare exp-out out || fail=1 compare /dev/null err || fail=1 Exit $fail does fail (YaOB). Werner > -- > ``The lyf so short, the craft so long to lerne.'

Re: [bug-bash] Hidden directories breaks path expansions

2019-03-07 Thread Dr. Werner Fink
On Thu, Mar 07, 2019 at 03:42:49PM +0100, Dr. Werner Fink wrote: > On Mon, Mar 04, 2019 at 09:00:38AM -0500, Chet Ramey wrote: > > On 3/4/19 8:19 AM, wer...@suse.de wrote: > > > > > Bash Version: 5.0 > > > Patch Level: 2 > > > Release Status: release >

Re: Hidden directories breaks path expansions

2019-03-11 Thread Dr. Werner Fink
On Fri, Mar 08, 2019 at 09:53:39AM -0500, Chet Ramey wrote: > On 3/7/19 9:42 AM, Dr. Werner Fink wrote: > > >> There is a slightly updated version of that patch attached to this message. > > > > OK ... the hidden directories do work now ... but in the test suite >

Re: [bug-bash] Unexpected sourcing of ~/.bashrc under ssh

2019-10-28 Thread Dr. Werner Fink
On 2019/10/24 10:47:52 -0400, Greg Wooledge wrote: > On Thu, Oct 24, 2019 at 09:01:07AM +0200, francis.montag...@inria.fr wrote: > > When logged on a machine with ssh, executing a simple command CMD1 > > that spawn a "/bin/bash -c some other command" do not source > > ~/.bashrc: normal behavi

New feature in bash 5.1/readline-8.1 rc1 breaks python-pexpect

2020-10-16 Thread Dr. Werner Fink
27;1 2', '3 4'] I found this is caused by (_rl_)enable[-_]bracketed[-_]paste as the sequences are defined in rlprivate.h #define BRACK_PASTE_INIT "\033[?2004h" #define BRACK_PASTE_FINI "\033[?2004l\r" indeed it is a nice feature to see highlighted paste

Re: New feature in bash 5.1/readline-8.1 rc1 breaks python-pexpect

2020-10-16 Thread Dr. Werner Fink
On 2020/10/16 09:03:53 -0400, Chet Ramey wrote: > On 10/16/20 5:41 AM, Dr. Werner Fink wrote: > > Hi, > > > > after build rc1 of bash 5.1 as well as readline-8.1 I've set up test > > staging process. During build the package python-pexpect throws e

Re: New feature in bash 5.1/readline-8.1 rc1 breaks python-pexpect

2020-10-28 Thread Dr. Werner Fink
On 2020/10/28 10:23:57 -0400, Chet Ramey wrote: > On 10/16/20 9:28 AM, Chet Ramey wrote: > > On 10/16/20 9:16 AM, Dr. Werner Fink wrote: > > > >> Also a warning hint in the manual page could > >> help users before enabling this feature :) > > > > I a

Re: [bug-bash] Named fifo's causing hanging bash scripts

2015-01-13 Thread Dr. Werner Fink
ause random hangs of the bash.An strace shows that the bash > > stays in wait4() > > And when you attach to one of the hanging bash processes using gdb, what > does the stack traceback look like? Yes (and sorry for the wrong email address as this was done on a clean virtua

Re: Named fifo's causing hanging bash scripts

2015-01-16 Thread Dr. Werner Fink
> > I can't reproduce this. I spun up a VM running OpenSUSE 13 and ran the > attached script against a version of bash-4.3.33 that was modified to use > FIFOs instead of /dev/fd. There were no hangs in any of about 30 runs. Hmmm ... what I see is werner 10920 0.0 0.0 11860

Re: [bug-bash] Named fifo's causing hanging bash scripts

2015-01-16 Thread Dr. Werner Fink
On Fri, Jan 16, 2015 at 09:22:36AM -0500, Chet Ramey wrote: > On 1/13/15 4:29 AM, Dr. Werner Fink wrote: > > >>> Bash Version: 4.3 > >>> Patch Level: 33 > >>> Release Status: release > >>> > >>> Description: > >>>

Re: [bug-bash] Named fifo's causing hanging bash scripts

2015-01-16 Thread Dr. Werner Fink
find answers. OK, thanks for your effort ... I've strip the spec file down step by step and reached success at commenting out -DMUST_UNBLOCK_CHLD=1 (mea culpa) ... many thanks for your help! Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr signature.asc Description: Digital signature

Trap does not work if a subshell wait(s) for job

2015-02-18 Thread Dr. Werner Fink
conds with bash 4.3 but with the old bash 4.2 only 2 seconds. Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr signature.asc Description: Digital signature

The trap EXIT not allways executed

2016-11-07 Thread Dr. Werner Fink
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc -I/home/abuild/rpmbuild/BUILD/bash-4.4 -L/home/abuild/rpmbuild/BUILD/bash-4.4/../readline-7.0 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -D

The lastpipe shell option even with job control?

2017-03-27 Thread Dr. Werner Fink
Hi, I'd like to ask if there is crucial reason, beside the correct foreground process group, not to allow the lastpipe shell option for an interactive bash? Maybe something like in the attachment could be an option? Werner -- "Having a smoking section in a restaurant is l

Re: The lastpipe shell option even with job control?

2017-03-28 Thread Dr. Werner Fink
On Tue, Mar 28, 2017 at 10:17:54AM -0400, Chet Ramey wrote: > On 3/27/17 9:44 AM, Dr. Werner Fink wrote: > > Hi, > > > > I'd like to ask if there is crucial reason, beside the correct foreground > > process group, not to allow the lastpipe shell option for an inter

Re: Syntax error near unexpected token `newline' within loops

2017-04-24 Thread Dr. Werner Fink
On Mon, Apr 24, 2017 at 02:25:41PM +0300, Pierre Gaston wrote: > On Mon, Apr 24, 2017 at 1:59 PM, wrote: > > > (...) > > > > and yes > > > > V_NAME=Friday > > for (( INDEX=0; INDEX<$((10-${#V_NAME})) ; INDEX++ )) > > do > > echo $INDEX > > done > > > >

Re: Syntax error near unexpected token `newline' within loops

2017-04-24 Thread Dr. Werner Fink
On Mon, Apr 24, 2017 at 08:44:11AM -0400, Greg Wooledge wrote: > On Mon, Apr 24, 2017 at 12:59:01PM +0200, wer...@suse.de wrote: > > V_NAME=Friday > > for (( INDEX=0; INDEX<$((10-$(expr length $V_NAME))); INDEX++ )) > > The outer (( )) in the C-style for loop already create an arithmetic >

Local variable can not unset within shell functions

2024-07-11 Thread Dr. Werner Fink
:~ # x declare -- x="y" y declare -- x ... for global variables it works as expected. Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr signature.asc Description: PGP signature