bash feature suggestion, show command RC codes in history

2023-04-23 Thread Mark Schlegel
the HISTTIMEFORMAT activates the HISTTIME Mark

Re: Man page section for complete's -C option is inconsistent

2022-07-06 Thread Mark Chandler via Bug reports for the GNU Bourne Again SHell
there and not for -C. It is curious that they're so different. Cheers, Mark C. On 07/07/2022 00:11, Chet Ramey wrote: On 7/4/22 12:03 AM, Mark Chandler via Bug reports for the GNU Bourne Again SHell wrote: Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu

Man page section for complete's -C option is inconsistent

2022-07-04 Thread Mark Chandler via Bug reports for the GNU Bourne Again SHell
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS

a nameref may resolve to different variables in assignment and parameter expansion

2022-01-06 Thread Mark March
cently in  https://lists.gnu.org/archive/html/bug-bash/2020-08/msg00206.html. I use namerefs extensively in a fairly large Bash code base for parameter passing, and I have to use fairly elaborate work-arounds to detect local variables shadowing outer-scope variables that the function operates on via namerefs. -Mark

read -t0 may report that input is available where none is possible

2021-11-20 Thread Mark March
rticular, a file descriptor is also ready on end-of-file)." -Mark

Re: ${y@a} on an empty array y fails with 'y: unbound variable' if run with set -u

2021-10-26 Thread Mark March
{ set +u; ... set -u; } around my [[ ${foo@a} =~ A ]] for now. Thanks again for your explanation and context. -Mark On Tuesday, October 26, 2021, 07:02:59 AM PDT, Chet Ramey wrote: On 10/25/21 8:24 PM, Mark March wrote: > If -u is on and you declare a simple or associative array 'y' and se

${y@a} on an empty array y fails with 'y: unbound variable' if run with set -u

2021-10-25 Thread Mark March
described in item (n) of the most recent change log: n. Fixed a bug that caused ${foo@a} to treat foo as an unset variable if it was an array without a value for subscript 0/"0" but had other set elements Thanks, -Mark

Re: EXIT trap is not executed after an exec failure in a non-interactive shell

2021-10-08 Thread Mark March
and, not doing this will lead to subtle bugs where cleanup code will suddenly not run, or processes unexpectedly catch signals that have been previously blocked. -Mark On Friday, October 8, 2021, 08:02:31 AM PDT, Chet Ramey wrote: On 10/1/21 2:16 PM, Mark March wrote: > Ok, thank you for clar

Re: EXIT trap is not executed after an exec failure in a non-interactive shell

2021-10-01 Thread Mark March
Ok, thank you for clarifying. There is nothing in the documentation about this behavior as far as I can tell. I would suggest adding a line about traps getting reset after a failed exec to the paragraph on 'execfail'. -Mark On Friday, October 1, 2021, 07:02:34 AM PDT, Chet Ramey wrote

Re: EXIT trap is not executed after an exec failure in a non-interactive shell

2021-09-30 Thread Mark March
tin command.  An  interactive  shell  does  not   exit if exec fails. It says nothing about the traps getting reset. In my example the script clearly continues to execute after the failed exec, as it should (since execfail is set). -Mark On Thursday, September 30, 2021, 04:47

EXIT trap is not executed after an exec failure in a non-interactive shell

2021-09-30 Thread Mark March
bash: line 3: /home/march/does-not-exist: No such file or directory exec failed in bash-5.0.17(1)-release The "exiting..." line is missing. If you comment out exec ~/does-not-exist, "exiting..." will be printed as expected. I get this under 5.1.8 as well, built with gcc 9.3 This is on Ubuntu 20 on x86_64. -Mark

Bash 4 crash: "f(){ declare -a x;declare -A x;};f"

2019-02-12 Thread Mark
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-unknown-linux-gnu' -DCONF_VENDOR='unknown'

Extglob *?(a)b matches every string

2018-08-12 Thread Mark Polyakov
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS:A -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc'

Re: y.tab.c inclusion within the source tree

2014-09-28 Thread Mark Goldfinch
Greetings, On 28 Sep 2014 19:41, John E. Malmberg wb8...@qsl.net wrote: On 9/27/2014 6:49 PM, Mark Goldfinch wrote: 1) Remove y.tab.c from the original tarball, and ensure the clean method within Makefile removes it The VMS build procedure currently needs the y.tab.c file, as the tools

Re: y.tab.c inclusion within the source tree

2014-09-28 Thread Mark Goldfinch
is actually generated. For everyone else surely it should be their responsibility to have the required tools available at build time? Thanks, Mark.

y.tab.c inclusion within the source tree

2014-09-27 Thread Mark Goldfinch
, at worst a bash build which is thought to address problems, won't. Thoughts? Thanks, Mark.

Re: Bash-4.3 Official Patch 25

2014-09-25 Thread Mark Ashley
Ah great, thanks for that...though since there's still the bug in p025 (see http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-7169 ) I'll keep spinning my wheels and watching the git branches until p026 rolls out. ta, Mark On Thu, Sep 25, 2014 at 3:55 PM, Chris F.A. Johnson ch

Re: Bash-4.3 Official Patch 25

2014-09-25 Thread mark
: cannot open echo I've just issued the new Solaris packages on the archive. http://www.ibiblio.org/pub/packages/solaris/sparc/ -rw---1 mark users 7463936 Sep 26 00:06 bash.4.3.p026.SPARC.32bit.Solaris.10.pkg -rw---1 mark users 7745024 Sep 26 00:06 bash.4.3.p026.SPARC.32bit.Solaris

Re: Bash-4.3 Official Patch 25

2014-09-24 Thread mark
Bash-Release:4.3 Patch-ID:bash43-025 As a binary distribution archive maintainer, I'd be keen to see the authors distributing a cumulative bash-4.3p025.tar.gz source bundle (probably p026 to nail the new issues above). The ftp://ftp.cwru.edu/pub/bash site just has the main 4.3

Re: Bug when trapping exit from subshell

2014-05-19 Thread Mark Ferrell
/false /dev/null 21 )} main $@ On Mon, May 19, 2014 at 7:00 AM, Chet Ramey chet.ra...@case.edu wrote: On 5/18/14, 12:56 PM, Mark Ferrell wrote: I believe that if you actually execute the script as intended you will find that your reading of the code is incorrect. Really though, redirection should

Fwd: Bug when trapping exit from subshell

2014-05-19 Thread Mark Ferrell
On Mon, May 19, 2014 at 10:45 AM, Greg Wooledge wool...@eeg.ccf.org wrote: On Mon, May 19, 2014 at 10:39:59AM -0700, Mark Ferrell wrote: I'm sorry, but the lack of consistency still sounds like it is a bug in bash. The behaviour I would expect is functionally equivalent to 'do_cmd /dev/null

Re: Bug when trapping exit from subshell

2014-05-18 Thread Mark Ferrell
, and you'll also notice you need a space after your ! On 16 May 2014 12:41, Mark Ferrell ma...@homeonderanged.org wrote: The following script properly reports the exit code to the calling environment, , but the exit handler is not called if a function triggers the exit vs an external command. Script

Bug when trapping exit from subshell

2014-05-16 Thread Mark Ferrell
The following script properly reports the exit code to the calling environment, , but the exit handler is not called if a function triggers the exit vs an external command. Script executed via: bash script false;echo $? bash script /bin/false;echo $? Expected the function 'exit_handler()' to be

RE: cd completion using aliased cd command

2013-07-17 Thread Mark W. Johnson
but then unset -f _cd, I get: cd bash: completion: function `_cd' not found So it's as if once the alias is set, tab completion always follows the alias even after I unset it. Mark -Original Message- From: Linda Walsh [mailto:b...@tlinx.org] Sent: Tuesday, July 16, 2013 11:41 PM

RE: cd completion using aliased cd command

2013-07-17 Thread Mark W. Johnson
that I was having a name collision problem. I changed my function _cd to __cd, and now tab completion works as it did before. Seems _cd is being defined in /etc/bash_completion so my _cd was trashing this function and causing auto-complete weirdness. Mark -Original Message- From: Chet

cd completion using aliased cd command

2013-07-16 Thread Mark W. Johnson
From: mwjohnso To: bug-bash@gnu.org Subject: cd completion using aliased cd command Configuration Information [Automatically generated, do not change]: Machine: i686 OS: cygwin Compiler: gcc-4 Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='cygwin'

Re: How to test if a link exists

2013-06-25 Thread Mark Young
there is plenty of code out there that tries to decide whether it is safe to create a file and would fall foul of an errant dead symbolic link. A little off topic but are -a and -e identical? Cheers, mark

How to test if a link exists

2013-06-21 Thread Mark Young
Is this an error in bash? What test should I use to decide if a file exists (including dead symbolic links)? Cheers, Mark

Bug in nested parameter expansion.

2012-03-19 Thread Mark Edgar
Bash release BASH_VERSION=4.2.0(1)-release, but not on BASH_VERSION=3.2.48(1)-release.     -Mark

[PATCH] builtins/test.def: Update string equality operator.

2010-01-31 Thread Mark Polesky
: release Description: `help test' output is missing `==' string equality operator. Repeat-By: $ help test Fix: Push the attached patch? From 4328a3719f591011f5ffab0577e325f5e582e539 Mon Sep 17 00:00:00 2001 From: Mark Polesky markpole...@yahoo.com Date: Sun, 31 Jan 2010

3.1 Build error on Solaris 9 w/ Sun CC v5.8

2006-04-26 Thread Mark Reis
I'm attempting to build a static version of Bash 3.1 on Solaris 9 using Sun's cc version 5.8 2005/10/13. It fails during make when compiling (I'm attempting to install to the /usr/cs directory). Any help would be appreciated. make STATIC_LD= LOCAL_LIBS='-B dynamic -ldl -B static'

Re: 3.1 Build error on Solaris 9 w/ Sun CC v5.8

2006-04-26 Thread Mark Reis
If I changed the recommended make statement to: make STATIC_LD= LOCAL_LIBS='-B dynamic -R/usr/lib -lnsl -ldl -B static'. It works on both Sol 9 and Sol 10 now. Cheers, Mark Chet Ramey wrote: Mark Reis wrote: I'm attempting to build a static version of Bash 3.1 on Solaris 9 using Sun's cc

printf error?

2006-04-03 Thread Robinson, Mark
would expect: % /bin/bash --version GNU bash, version 3.00.16(1)-release (sparc-sun-solaris2.10) Copyright (C) 2004 Free Software Foundation, Inc. % /bin/bash -c 'printf %0.5d\n 1' 1 Any ideas, anyone? cheers mark -- Mark Robinson Consultant Vignette Professional Services +61 2 9455 5317

introducing BASHRC env var

2006-03-27 Thread Robinson, Mark
login. Yes, I now you can specify an alternate bashrc with the --rcfile parameter, but then subsequent instances of bash invoked by screen, for instance, do not know about the alternate location of bashrc. cheers mark ---8

Out of Office AutoReply: Auf Streife durch den Berliner Wedding

2005-05-17 Thread Kalla, Mark
Title: Out of Office AutoReply: Auf Streife durch den Berliner Wedding I will be out of the office traveling on Thursday and Friday but will monitor my email. If you have any questions, please contact my assistant Maggie Hegarty at 612-492-6019.

Augen auf

2005-05-15 Thread mark
http://www.rocknord.de http://www.aktivefrauenfraktion.tk http://www.kopfmord.de http://www.das-gibts-doch-nicht.de http://www.zukunft-europa.info/index.html http://www.geocities.com/scorpios2602/links.html http://www.g-d-f.de http://www.bewaeltigen.de http://www.wk-institut.de