Re: bash 5.3, rc2, "make install" does not populate the share/man/man1 directory

2025-06-14 Thread Greg Wooledge
uring the "configure" step) ? A lot of people won't have the texinfo tools installed, and bash itself builds just fine without them. So, my understanding/guess is that the documentation part is considered "optional", and will be built if the tools are present, but skipped i

Re: bash 5.3, rc2, "make install" does not populate the share/man/man1 directory

2025-06-14 Thread Stan Marsh
(Followup to my previous post) To answer my own question, I guess it is pretty obvious that the answer to "How to fix?" is "Install texinfo and re-run the make install", but it raises two important questions: 1) Why is the error ignored, making it almost impossible to determine that

Re: bash 5.3, rc2, "make install" does not populate the share/man/man1 directory

2025-06-14 Thread Stan Marsh
I found the problem (I think). See below: --- Cut Here --- make[1]: Entering directory '/home/username/Build/bash-5.3-rc2/doc' rm -f bashref.info makeinfo --no-split -I../lib/readline/doc ./bashref.texi make[1]: makeinfo: Command not found Makefile:181: recipe for target 'bashr

Re: bash 5.3, rc2, "make install" does not populate the share/man/man1 directory

2025-06-13 Thread Chet Ramey
x27;t reproduce this. After I configure --prefix=/fs1/install and run `make install', I get: $ ls /fs1/install/share/man/man1/ bash.1 bashbug.1 -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrate

Re: [bash arithmetic bugs with "++","--","+=1" and "-=1"]

2025-06-13 Thread Chet Ramey
ly be preferred over let.[0] You might find this discussion interesting. It discusses the problems with double-evaluation of array subscripts and describes the changes that ended up in bash-5.2. https://lists.gnu.org/archive/html/bug-bash/2021-03/msg00056.html -- ``The lyf so short, the craft so lo

bash 5.3, rc2, "make install" does not populate the share/man/man1 directory

2025-06-13 Thread Stan Marsh
I did: ./configure --prefix=$HOME/local/bash5 Then make and then make install (all of this is done as a non-root user). It created the directory listed above and all the necessary subdirs, including share/man/man1, but left that directory empty. Shouldn't (at least) a copy of "bash.1&

Re: [bash arithmetic bugs with "++","--","+=1" and "-=1"]

2025-06-13 Thread Greg Wooledge
once, it can get a bit cranky. Wait a few minutes and try again, is all I can suggest. > >(( hash[$key]++ ))# is not safe > >let 'hash[$key]++'# is safe > > Could you explain what the issue/problem is? What makes it unsafe? > > And, I reall

Re: [bash arithmetic bugs with "++","--","+=1" and "-=1"]

2025-06-13 Thread Stan Marsh
On Fri, Jun 13, 2025 at 07:08:21 -0600, Stan Marsh wrote: > BTW, and only tangentially related, "man bash" says that "let" and "(( ))" are > exactly the same, but "shellcheck" thinks otherwise. "shellcheck" says you > should > use &qu

Re: [bash arithmetic bugs with "++","--","+=1" and "-=1"]

2025-06-13 Thread Todd Zullinger
Greg Wooledge wrote: > On Fri, Jun 13, 2025 at 07:08:21 -0600, Stan Marsh wrote: >> BTW, and only tangentially related, "man bash" says that >> "let" and "(( ))" are exactly the same, but "shellcheck" >> thinks otherwise. "she

Re: [bash arithmetic bugs with "++","--","+=1" and "-=1"]

2025-06-13 Thread Greg Wooledge
On Fri, Jun 13, 2025 at 07:57:54 -0600, Stan Marsh wrote: > Also, note that if you are running with "set -e" (or "trap ... ERR"), then > having > "let" (or "(( ))") return a non-zero exit status when it happens to evaluate > to zero, > could cause an unexpected script abort. This is why I linked

Re: [bash arithmetic bugs with "++","--","+=1" and "-=1"]

2025-06-13 Thread Stan Marsh
>All of this is intentional, and not a bug. It is possible to be both. But, yes, it reflects a fundamental inconsistency in the C/Unix ecosystem. The fact that in most programming languages (e.g., C, AWK), 0 means false and non-zero means true, but in the shell, it is the opposite. E.g., in AWK

Re: [bash arithmetic bugs with "++","--","+=1" and "-=1"]

2025-06-13 Thread Greg Wooledge
On Fri, Jun 13, 2025 at 07:08:21 -0600, Stan Marsh wrote: > BTW, and only tangentially related, "man bash" says that "let" and "(( ))" > are exactly > the same, but "shellcheck" thinks otherwise. "shellcheck" says you should > us

Re: [bash arithmetic bugs with "++","--","+=1" and "-=1"]

2025-06-13 Thread Greg Wooledge
On Fri, Jun 13, 2025 at 12:41:16 +0300, Stamatis Mavrogeorgis wrote: > The shorthands "++", "--", "+=1" and "-=1" in bash arithmetic > erroneously return exit code 1 when a variable is either incremented by > "++" or decremented

Re: [bash arithmetic bugs with "++","--","+=1" and "-=1"]

2025-06-13 Thread Stan Marsh
>Description: >The shorthands "++", "--", "+=1" and "-=1" in bash arithmetic >erroneously return exit code 1 when a variable is either incremented by >"++" or decremented by "--" from 0 or incremented by "+=

[bash arithmetic bugs with "++","--","+=1" and "-=1"]

2025-06-13 Thread Stamatis Mavrogeorgis
(2025-05-19) x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 5.2 Patch Level: 15 Release Status: release Description: The shorthands "++", "--", "+=1" and "-=1" in bash arithmetic erroneously return exit code 1 when a variable is eith

Re: Building bash 5.3, rc2, warning about mktemp()

2025-06-11 Thread Chet Ramey
On 6/10/25 6:54 PM, Robert Elz wrote: ps: in general, usually, mktemp() isn't the best interface to use, there are race conditions, but whether that matters depends upon just what it is being used for, Sometimes you need to generate a name for a file system object that isn't a regular file (or

Re: Building bash 5.3, rc2, warning about mktemp()

2025-06-11 Thread Chet Ramey
iscussion about it: https://lists.gnu.org/archive/html/bug-bash/2021-01/msg00112.html It's still a well-meaning but spurious warning. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ram

Re: Building bash 5.3, rc2, warning about mktemp()

2025-06-10 Thread Robert Elz
Date:Tue, 10 Jun 2025 18:29:00 +0300 From:=?UTF-8?B?T8SfdXo=?= Message-ID: The original response was fine. | This came up a few times and the answer is always along the lines of "it | works fine, ignore the warning". And beyond that, it isn'

Re: Building bash 5.3, rc2, warning about mktemp()

2025-06-10 Thread Stan Marsh
Somebody flitted: > Nah This is not an answer. This is just someone blowing off steam. = Please do not send me replies to my posts on the list. I always read the replies via the web archive, so CC'ing to me is unnec

Re: Building bash 5.3, rc2, warning about mktemp()

2025-06-10 Thread Oğuz
On Tuesday, June 10, 2025, Stan Marsh wrote: > > Should I be concerned about the warning? > Nah -- Oğuz

Re: Building bash 5.3, rc2, warning about mktemp()

2025-06-10 Thread Oğuz
t: https://lists.gnu.org/archive/html/bug-bash/2021-01/msg00112.html -- Oğuz

Building bash 5.3, rc2, warning about mktemp()

2025-06-10 Thread Stan Marsh
See below. As far as I can tell, it built OK. Should I be concerned about the warning? --- Cut Here --- rm -f bash gcc -std=gnu11 -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde -L./lib/malloc -L./lib/sh -rdynamic -g -O2 -o bash shell.o eval.o y.tab.o general.o

Bash-5.3-rc2 available

2025-06-03 Thread Chet Ramey
The second release candidate of bash-5.3 is now available with the URLs ftp://ftp.cwru.edu/pub/bash/bash-5.3-rc2.tar.gz https://ftp.gnu.org/pub/gnu/bash/bash-5.3-rc2.tar.gz and from the bash-5.3-testing branch in the bash git repository (http://git.savannah.gnu.org/cgit/bash.git/log/?h=bash-5.3

Re: [PATCH] bash-5.3-rc1 FTBFS when cross compiling with gcc-15

2025-05-22 Thread Chet Ramey
On 5/21/25 5:02 PM, Bruce Dubbs wrote: In linuxfromscratch we do a preliminary build of bash in order to run it later in a chroot environment without any dependencies from the host system: ./configure --prefix=/usr   \     --build=x86_64-pc-linux-gnu \     --host

Re: [PATCH] bash-5.3-rc1 FTBFS when cross compiling with gcc-15

2025-05-22 Thread Chet Ramey
On 5/22/25 12:48 AM, Oğuz wrote: On Thursday, May 22, 2025, Bruce Dubbs wrote: with cstd-23 'bool' is a keyword This is something the configure script should check. Otherwise why have one? When you are cross-compiling, config.h is for the target system, not the build system. You need a cons

Re: [PATCH] bash-5.3-rc1 FTBFS when cross compiling with gcc-15

2025-05-21 Thread Oğuz
On Thursday, May 22, 2025, Bruce Dubbs wrote: > with cstd-23 'bool' is a keyword This is something the configure script should check. Otherwise why have one? -- Oğuz

[PATCH] bash-5.3-rc1 FTBFS when cross compiling with gcc-15

2025-05-21 Thread Bruce Dubbs
In linuxfromscratch we do a preliminary build of bash in order to run it later in a chroot environment without any dependencies from the host system: ./configure --prefix=/usr \ --build=x86_64-pc-linux-gnu \ --host=x86_64-lfs-linux-gnu

Re: What is the status of bash-5.3?

2025-05-19 Thread Chet Ramey
On 5/16/25 10:52 PM, Bruce Dubbs wrote: We have looked at bash-5.3-rc1 which was released om April 8th and that does build with gcc-15.  Can you give us an idea when the stable bash-5.3 will be released? I will release the second release candidate of bash-5.3 as soon as I can go through the

Re: Bash does not complete the filename once the situation becomes singular

2025-05-17 Thread Chet Ramey
On 5/12/25 8:04 PM, Adam Purkrt wrote: GNU bash, version 5.2.37(1)-release (x86_64-pc-linux-gnu) OS: Gentoo Linux Originally met this while the download of iso file in firefox was nearing completion, and I was preparing myself to move the downloaded foobar.iso file elsewhere. I opened terminal

Re: What is the status of bash-5.3?

2025-05-17 Thread Todd Zullinger
Bruce Dubbs wrote: > At the linuxfromscratch project, we document for users how to build a > relatively complete Linux system from source code. When we do this we > consider bash to be one of the most important packages in the system. > > https://www.linuxfromscratch.org/

What is the status of bash-5.3?

2025-05-16 Thread Bruce Dubbs
At the linuxfromscratch project, we document for users how to build a relatively complete Linux system from source code. When we do this we consider bash to be one of the most important packages in the system. https://www.linuxfromscratch.org/lfs/view/stable/ Our policy is to use the most

Bash does not complete the filename once the situation becomes singular

2025-05-12 Thread Adam Purkrt
GNU bash, version 5.2.37(1)-release (x86_64-pc-linux-gnu) OS: Gentoo Linux Originally met this while the download of iso file in firefox was nearing completion, and I was preparing myself to move the downloaded foobar.iso file elsewhere. I opened terminal with bash, typed "mv foobar.&qu

Re: Bug in Bash Autocompletion: Hidden File, ...Hiding-From-You, Autocompleted Without Dot Prefix

2025-04-28 Thread Chet Ramey
| I suspect this is the result your | programmable completion specification for `cat' produces. I suspect it is more likely that the readline config option "match-hidden-files" is "on" (which seems to be its default). Good catch; I have that disabled in my environment. -- ``The lyf s

Re: Bug in Bash Autocompletion: Hidden File, ...Hiding-From-You, Autocompleted Without Dot Prefix

2025-04-25 Thread Robert Elz
Date:Fri, 25 Apr 2025 15:44:47 -0400 From:Chet Ramey Message-ID: <9d1a2482-d47f-4c49-9581-45c5db81d...@case.edu> | I can't reproduce this using bash-5.2.37. I can. | I suspect this is the result your | programmable completion specification for `ca

Re: Bug in Bash Autocompletion: Hidden File, ...Hiding-From-You, Autocompleted Without Dot Prefix

2025-04-25 Thread Tanmay Jagtap
Thanks, I'll check it out. On Sat, 26 Apr 2025, 1:14 am Chet Ramey, wrote: > On 4/25/25 11:18 AM, Tanmay Jagtap wrote: > > *Dear Bash Maintainers,* > > > > I have encountered an issue with Bash autocompletion on my system. > > Specifically, a file beginning with

Re: Bug in Bash Autocompletion: Hidden File, ...Hiding-From-You, Autocompleted Without Dot Prefix

2025-04-25 Thread Chet Ramey
On 4/25/25 11:18 AM, Tanmay Jagtap wrote: *Dear Bash Maintainers,* I have encountered an issue with Bash autocompletion on my system. Specifically, a file beginning with three dots (e.g., ...Hiding-From-You) is autocompleted even when no dot (.) has been typed, which seems inconsistent with

Bug in Bash Autocompletion: Hidden File, ...Hiding-From-You, Autocompleted Without Dot Prefix

2025-04-25 Thread Tanmay Jagtap
*Dear Bash Maintainers,* I have encountered an issue with Bash autocompletion on my system. Specifically, a file beginning with three dots (e.g., ...Hiding-From-You) is autocompleted even when no dot (.) has been typed, which seems inconsistent with typical Bash behavior where hidden files are

[bug #67045] bash parsing error, when using readline, backslashes, and

2025-04-22 Thread anonymous
URL: <https://savannah.gnu.org/bugs/?67045> Summary: bash parsing error, when using readline, backslashes, and Group: The GNU Bourne-Again SHell Submitter: None Submitted: Tue 22 Apr 2025 08:41:19 PM UTC Ca

Re: Bash documentation is missing ID anchor

2025-04-22 Thread Chet Ramey
On 4/19/25 12:02 AM, Antti Savolainen wrote: https://www.gnu.org/software/bash/manual/html_node/Directory-Stack-Builtins.html pushd on this page is missing an anchor and I'm unable to link directly to it due to that. Looks like the scripts that generate the HTML require that @item come b

Re: Bash shell uses wrong language

2025-04-21 Thread Ángel
On 2025-04-14 at 10:59 -0400, Greg Wooledge wrote: > Are bilingual but primarily-English-speaking end users expected to put > "en@quot" as their preferred language in the LANGUAGE variable, in order > to get messages in English? > > Would creating an empty /usr/share/locale/en/LC_MESSAGES/bash.mo

Bash documentation is missing ID anchor

2025-04-19 Thread Antti Savolainen
https://www.gnu.org/software/bash/manual/html_node/Directory-Stack-Builtins.html pushd on this page is missing an anchor and I'm unable to link directly to it due to that.

Re: Bash shell uses wrong language

2025-04-14 Thread Chet Ramey
On 4/14/25 10:56 AM, Kaulkwappe wrote: Hi Chet! Can you confirm that Bash really has translations for 'en_US'? Because you say: If there is no installed locale for en_US [...] No, very few programs do. The Debian 12 system I looked at claims to have en_US installed, but nothing in

Re: Bash shell uses wrong language

2025-04-14 Thread microsuxx
++ On Mon, Apr 14, 2025, 16:46 Chet Ramey wrote: > On 4/13/25 11:37 AM, microsuxx wrote: > > seems to cycle between lc : parts one loose .. > > No, these are all translated strings. > > >> hobbit:~$ LANGUAGE=en_US:es_ES bash --version > >> GNU bash, versió

Re: Bash shell uses wrong language

2025-04-14 Thread Greg Wooledge
) is responsible for overriding > the `active category', which is LC_MESSAGES, according to what it finds > in $LANGUAGE. > > If there is no installed locale for en_US, or no LC_MESSAGES bash.mo file > in the right place, gettext(3) will ignore that locale in $LANGUAGE. >

Re: Bash shell uses wrong language

2025-04-14 Thread Kaulkwappe
Hi Chet! Can you confirm that Bash really has translations for 'en_US'? Because you say: > If there is no installed locale for en_US [...] In my scenario en_US is installed – but Bash (or gettext) doesn't seem to find it, which does not make much sen

Re: Bash shell uses wrong language

2025-04-14 Thread Chet Ramey
On 4/13/25 11:37 AM, microsuxx wrote: seems to cycle between lc : parts one loose .. No, these are all translated strings. hobbit:~$ LANGUAGE=en_US:es_ES bash --version GNU bash, versión 5.2.15(1)-release (x86_64-pc-linux-gnu) Note the accented `o'. Copyright (C) 2022 Free Sof

Re: Bash shell uses wrong language

2025-04-14 Thread Chet Ramey
On 4/13/25 10:06 AM, Kaulkwappe wrote: Hi! I use Fedora 41 KDE and my first and default language is English (primary) and my second language (secondary) is German. However, the Bash shell wrongfully uses the secondary language: bash --version GNU bash, Version

Re: Bash shell uses wrong language

2025-04-13 Thread microsuxx
seems to cycle between lc : parts one loose .. On Sun, Apr 13, 2025, 16:46 Greg Wooledge wrote: > On Sun, Apr 13, 2025 at 16:06:46 +0200, Kaulkwappe wrote: > > > bash --version > > > GNU bash, Version 5.2.32(1)-release (x86_64-redhat-linux-gnu) > > > Copyright (C)

Re: Bash shell uses wrong language

2025-04-13 Thread Greg Wooledge
On Sun, Apr 13, 2025 at 16:06:46 +0200, Kaulkwappe wrote: > > bash --version > > GNU bash, Version 5.2.32(1)-release (x86_64-redhat-linux-gnu) > > Copyright (C) 2022 Free Software Foundation, Inc. > > Lizenz GPLv3+: GNU GPL Version 3 oder jünger > > <http://gnu.or

Bash shell uses wrong language

2025-04-13 Thread Kaulkwappe
Hi! I use Fedora 41 KDE and my first and default language is English (primary) and my second language (secondary) is German. However, the Bash shell wrongfully uses the secondary language: > bash --version > GNU bash, Version 5.2.32(1)-release (x86_64-redhat-lin

Re: Bash skips empty lines when reading history file in multiline mode

2025-04-10 Thread Chet Ramey
On 4/4/25 4:18 PM, Jens Schmidt wrote: [bashbug output manually adapted to real version ...] Bash Version: 5.3 Commit: a6767763de5e7859107711b166a64a9e4a77a8ae Release Status: compiled from recent devel branch Description: Bash skips empty lines when reading history file in multiline mode

Re: Bash skips empty lines when reading history file in multiline mode

2025-04-09 Thread microsuxx
broken cmd plz fixx greets++ ur microsucker .. On Mon, Apr 7, 2025, 22:34 Chet Ramey wrote: > On 4/4/25 4:18 PM, Jens Schmidt wrote: > > > [bashbug output manually adapted to real version ...] > > Bash Version: 5.3 > > Commit: a6767763de5e7859107711b166a64a9e4a77a8ae > >

Bash-5.3-rc1 available

2025-04-08 Thread Chet Ramey
The first release candidate of bash-5.3 is now available with the URLs ftp://ftp.cwru.edu/pub/bash/bash-5.3-rc1.tar.gz https://ftp.gnu.org/pub/gnu/bash/bash-5.3-rc1.tar.gz and from the bash-5.3-testing branch in the bash git repository (http://git.savannah.gnu.org/cgit/bash.git/log/?h=bash-5.3

Re: Bash skips empty lines when reading history file in multiline mode

2025-04-07 Thread Jens Schmidt
On 2025-04-07 22:34, Chet Ramey wrote: > On 4/4/25 4:18 PM, Jens Schmidt wrote: > >> [bashbug output manually adapted to real version ...] >> Bash Version: 5.3 >> Commit: a6767763de5e7859107711b166a64a9e4a77a8ae >> Release Status: compiled from recent dev

Re: Bash skips empty lines when reading history file in multiline mode

2025-04-07 Thread microsuxx
one small addition , <<'foo' ( with quotes is used ) .. .. should tell bash expliciply preserve data .. On Mon, Apr 7, 2025, 23:51 microsuxx wrote: > i dunno what lithist is , but remaining data one to one is a big bug thats > gotta be fixed > its like u write foo &quo

Re: ;exit in bash history causes bash to exit

2025-04-05 Thread Ethan Gascoigne
Must be some kindof bug with fasd (https://github.com/whjvenyl/fasd). Any idea how fasd could cause `;exit` to be interpreted as a valid command? Running `alias exit` shows that it's not aliased to anything. Weird that fasd causes `;exit` to be a valid command, and also that it causes bash to ex

Bash skips empty lines when reading history file in multiline mode

2025-04-04 Thread Jens Schmidt
: Linux sappc1 6.12.17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.17-1 (2025-03-01) x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu [bashbug output manually adapted to real version ...] Bash Version: 5.3 Commit: a6767763de5e7859107711b166a64a9e4a77a8ae Release Status: compiled from recent devel

Re: ;exit in bash history causes bash to exit

2025-03-26 Thread Dale R. Worley
> shows that it's not aliased to anything. > > Weird that fasd causes `;exit` to be a valid command, and also that it > causes bash to execute it when loading if it's the last thing in the > history file. I'll raise a bug report on the fasd GitHub. Apologies > for the

Re: ;exit in bash history causes bash to exit

2025-03-26 Thread microsuxx
yea make bug report .. in my experience , such bash codes on github have very low code quality .. peace .. ++ On Wed, Mar 26, 2025, 15:09 Ethan Gascoigne wrote: > I do have an alias with `&& exit` in it, but removing that alias > doesn't get rid of the bug. I've tes

Re: ;exit in bash history causes bash to exit

2025-03-26 Thread Duncan Roe
On Tue, Mar 25, 2025 at 05:55:23PM -0400, Greg Wooledge wrote: > On Tue, Mar 25, 2025 at 22:16:15 +0100, microsuxx wrote: > > when bash reads exit cmd it will exit > > so bash reads rc and exits .. > > also .. u may have a ';exit' alias .. > > The claim is th

Re: ;exit in bash history causes bash to exit

2025-03-25 Thread microsuxx
when bash reads exit cmd it will exit so bash reads rc and exits .. also .. u may have a ';exit' alias .. On Tue, Mar 25, 2025, 22:15 microsuxx wrote: > dude if u tell bash to exit it will exit .. > > On Tue, Mar 25, 2025, 20:41 Ethan Gascoigne wrote: > >> From: e

Re: ;exit in bash history causes bash to exit

2025-03-25 Thread microsuxx
ah bash history file .. .. yea i tried , bash dev doesnt segfault or anything , with it on a line and without an ending newline warm greetings .. :)) On Tue, Mar 25, 2025, 22:56 Greg Wooledge wrote: > On Tue, Mar 25, 2025 at 22:16:15 +0100, microsuxx wrote: > > when bash reads exit cm

Re: ;exit in bash history causes bash to exit

2025-03-25 Thread Greg Wooledge
On Tue, Mar 25, 2025 at 22:16:15 +0100, microsuxx wrote: > when bash reads exit cmd it will exit > so bash reads rc and exits .. > also .. u may have a ';exit' alias .. The claim is that the ;exit appears in .bash_history (not .bashrc) and that this somehow causes a new insta

Re: ;exit in bash history causes bash to exit

2025-03-25 Thread microsuxx
dude if u tell bash to exit it will exit .. On Tue, Mar 25, 2025, 20:41 Ethan Gascoigne wrote: > From: ethan > To: bug-bash@gnu.org > Subject: ;exit in bash history causes bash to exit > > Configuration Information [Automatically generated, do not change]: > Machine: x86_

Re: ;exit in bash history causes bash to exit

2025-03-25 Thread Martin Schulte
Hello Ethan, I can't reproduce the problem: > Repeat-By: > Open a terminal with bash as the shell > Type `;exit` This results in bash: syntax error near unexpected token `;' but not in closing the shell. > Re-open the terminal, it will immed

;exit in bash history causes bash to exit

2025-03-25 Thread Ethan Gascoigne
From: ethan To: bug-bash@gnu.org Subject: ;exit in bash history causes bash to exit Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp

System deleted after using bash

2025-03-04 Thread Austen Shanley
So, I was using the command bash in the terminal, and now all my files are deleted. I think the bash command was the reason. I can turn it back. Sent from my iPad

Re: bash --pretty-print and pattern

2025-02-21 Thread Timotei Campian
great hint! many thanks On Thu, 20 Feb 2025 at 14:26, Koichi Murase wrote: > 2025年2月20日(木) 20:51 Timotei Campian : > > echo !(file.f*) > > > > *bash --pretty-print test.sh* > > If this script file "test.sh" will be used as an independent > executabl

Re: bash --pretty-print and pattern

2025-02-21 Thread Chet Ramey
On 2/20/25 11:04 AM, Koichi Murase wrote: Thank you. I didn't know this behavior. Is that documented? I tried to find it in the description of `--pretty-print', but I realized that the --pretty-print option itself is undocumented. It's not. It's just a novelty. -- ``The lyf so short, the cr

Re: bash --pretty-print and pattern

2025-02-20 Thread Koichi Murase
2025年2月20日(木) 23:37 Chet Ramey : > > $ bash --pretty-print -O extglob test.sh > > You can use BASH_ENV for this. The primary reason that pretty-printing mode > doesn't suppress execution until after any startup files are read is to > allow a custom startup file to set the

Re: bash --pretty-print and pattern

2025-02-20 Thread Chet Ramey
int a file with the actual set of shell options that the file is supposed to be parsed, you need to set them in the command-line options of Bash. In the present case, you can run it in the following way: $ bash --pretty-print -O extglob test.sh You can use BASH_ENV for this. The primary reason tha

Re: bash --pretty-print and pattern

2025-02-20 Thread Andreas Kähäri
Je Thu, Feb 20, 2025 at 08:29:19AM -0500, Greg Wooledge skribis: > On Thu, Feb 20, 2025 at 21:25:45 +0900, Koichi Murase wrote: > > $ bash --pretty-print -O extglob test.sh > > Yeah, I misread the question a little bit. Sorry about that. > > By the way, is this considered

Re: bash --pretty-print and pattern

2025-02-20 Thread Greg Wooledge
On Thu, Feb 20, 2025 at 21:25:45 +0900, Koichi Murase wrote: > $ bash --pretty-print -O extglob test.sh Yeah, I misread the question a little bit. Sorry about that. By the way, is this considered a bug: hobbit:~$ bash -O extglob --pretty-print x bash: --: invalid option Usage: bash [GNU l

Re: bash --pretty-print and pattern

2025-02-20 Thread Koichi Murase
2025年2月20日(木) 20:51 Timotei Campian : > echo !(file.f*) > > *bash --pretty-print test.sh* If this script file "test.sh" will be used as an independent executable file, to make it work, you need to put "shopt -s extglob" at the beginning of the file as Greg explain

Re: bash --pretty-print and pattern

2025-02-20 Thread Greg Wooledge
On Thu, Feb 20, 2025 at 13:50:29 +0200, Timotei Campian wrote: > *OS*=debian12 > *BASH_VERSION*="5.2.15(1)-release" > > the script test.sh has the following content: > > echo !(file.f*) > > > Now calling bash pretty-print result in this error: > >

bash --pretty-print and pattern

2025-02-20 Thread Timotei Campian
*OS*=debian12 *BASH_VERSION*="5.2.15(1)-release" the script test.sh has the following content: echo !(file.f*) Now calling bash pretty-print result in this error: *bash --pretty-print test.sh* file1: line 2: syntax error near unexpected token `(' file1: line 2: `echo !(file.f*)'

Re: grammar error in Bash Reference Manual

2025-02-12 Thread Lawrence Velázquez
On Wed, Feb 12, 2025, at 9:18 PM, LY via Bug reports for the GNU Bourne Again SHell wrote: > I think there is a grammar error in this sentence > in https://www.gnu.org/software/bash/manual/html_node/Conditional-Constructs.html > >  "but double quote characters in expressio

grammar error in Bash Reference Manual

2025-02-12 Thread LY
Hi, I think there is a grammar error in this sentence in https://www.gnu.org/software/bash/manual/html_node/Conditional-Constructs.html  "but double quote characters in expression are not treated specially are removed." This sentence should be changed to "but double quot

Re: Bug in bash read builtin, info from while read REPLY leaking into separate red -r -p "$1" command in function

2025-02-09 Thread Robert Elz
Date:Sun, 9 Feb 2025 08:52:07 -0500 From:Greg Wooledge Message-ID: <20250209135207.gn29...@wooledge.org> | Oh, that must be another 2024 change. As my earlier correction indicated, it didn't happen. It turns out that all the *ash shells (bash, ya

Re: Bug in bash read builtin, info from while read REPLY leaking into separate red -r -p "$1" command in function

2025-02-09 Thread Greg Wooledge
On Sun, Feb 09, 2025 at 12:30:33 +0700, Robert Elz wrote: > | and "read -p" for the prompt. > > which could be just a printf without a trailing \n before the > read -- but doesn't need to be as read -p is in the standard. Oh, that must be another 2024 change. The manpages-posix package I've go

Re: Bug in bash read builtin, info from while read REPLY leaking into separate red -r -p "$1" command in function

2025-02-09 Thread Robert Elz
Date:Sun, 09 Feb 2025 12:30:33 +0700 From:Robert Elz Message-ID: <16760.1739079...@jacaranda.noi.kre.to> | read -- but doesn't need to be as read -p is in the standard. I was sure that had been added, but as usual when I am relying on memory I was wrong, -p isn't i

Re: Bug in bash read builtin, info from while read REPLY leaking into separate red -r -p "$1" command in function

2025-02-08 Thread Robert Elz
; | command, Sure, that one I agree with, and makes it much easier, I was just maintaining the original design as much as possible. | The only bash extensions we really want, then, are the parameter | expansion for the renaming step, which, as above, isn't really needed at all. | a

Re: Bug in bash read builtin, info from while read REPLY leaking into separate red -r -p "$1" command in function

2025-02-08 Thread Greg Wooledge
nly the case here, and in most other cases. You really want bash's ${var//search/replace} feature for the renaming step, so as long as you're already using that, you might as well use any other bash features that make your job easier. For the problem as stated (no recursion), we c

Re: Bug in bash read builtin, info from while read REPLY leaking into separate red -r -p "$1" command in function

2025-02-08 Thread Robert Elz
Date:Sat, 8 Feb 2025 12:08:10 -0500 From:Greg Wooledge Message-ID: <20250208170810.gl29...@wooledge.org> | OK, I think you have something like this: | | while read -r f; do | if [[ $f = *[[:space:]]* ]]; then | read -r -p "Fix <$f>? " yn |

Re: Bug in bash read builtin, info from while read REPLY leaking into separate red -r -p "$1" command in function

2025-02-08 Thread Chet Ramey
On 2/8/25 10:48 AM, carlyle_moul...@optusnet.com.au wrote: Then follows a while read REPLY; do # loop to read records from /tmp/$USER/tempfile1 # The first record is discarded, from the remainder the File_Name is extracted and passed to a functionas a quoted string to function File_Contains_Blan

Re: Bug in bash read builtin, info from while read REPLY leaking into separate red -r -p "$1" command in function

2025-02-08 Thread Greg Wooledge
On Sun, Feb 09, 2025 at 02:48:42 +1100, carlyle_moul...@optusnet.com.au wrote: > I have a script to go through file names in the current directory, > check whether they contain blanks and optionally replace blanks with > underscores. for f in *[[:space:]]*; do read -r -p "Fix <$f>? " yn if

Bug in bash read builtin, info from while read REPLY leaking into separate red -r -p "$1" command in function

2025-02-08 Thread carlyle_moulton
From: carl To: bug-bash@gnu.org Subject: [50 character or so descriptive subject here (for reference)] In a script two instances of the read builtin mutually interfere Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS

Re: Patch on shellmath.sh from bash-doc v.5.2.32, r.1.fc41

2025-02-07 Thread Chet Ramey
On 2/4/25 8:42 PM, Wiley Young wrote: Hi, Please say something if this patch should be sent someplace else. If you do send this along to the github repo for this project, you might consider saving the diff output to a file and attaching it to something instead of pasting it and letting your

Re: Patch on shellmath.sh from bash-doc v.5.2.32, r.1.fc41

2025-02-05 Thread Chet Ramey
On 2/4/25 8:42 PM, Wiley Young wrote: Hi, Please say something if this patch should be sent someplace else. https://github.com/clarity20/shellmath It's probably due for an update; that repo hasn't changed in years. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Patch on shellmath.sh from bash-doc v.5.2.32, r.1.fc41

2025-02-04 Thread Wiley Young
en addressed: * doc/bash/examples/shellmath/shellmath.sh + Remove trailing spaces and tabs. + Workaround of problematic use of "10#$fractionalSum" syntax by replacing it with an admittedly awkward "${fractionalSum//[^-]}10#${fractionalSum//[^0-9]}" expansion syntax. For

Re: bash-5.2.32 fails "make install" on RHEL 9

2025-01-27 Thread Chet Ramey
the loadable builtins in bash-5.3-beta build with a minimal config. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ OpenPGP_signature.asc Description: OpenPGP digital signature

Re: bash-5.2.32 fails "make install" on RHEL 9

2025-01-25 Thread Dennis Clarke via Bug reports for the GNU Bourne Again SHell
n FreeBSD that just seems very hard to track down. The default bourne shell on FreeBSD machines seems to totally wreck havok on the stty terminal setting we call "echoctl". So I figure the best way to file a bug report and to demonstrate that something is borked was to build the bash shell w

Re: bash compat* issues?

2025-01-22 Thread Chet Ramey
On 1/22/25 8:03 AM, MacBeth wrote: $ unset BASH_COMPAT $ declare -p BASH_COMPAT bash: declare: BASH_COMPAT: not found $ BASH_COMPAT=foobar bash: BASH_COMPAT: foobar: compatibility value out of range $ declare -p BASH_COMPAT declare -- BASH_COMPAT="foobar" $ BASH_COMPAT=4.4 /opt/ho

Re: bash compat* issues?

2025-01-22 Thread Chet Ramey
On 1/21/25 9:49 PM, MacBeth wrote: re: GNU bash, version 5.2.37(1)-release (aarch64-apple-darwin23.4.0) --- 1) `shopt compat50` does not exist. The manpage does specify that 'compat50' is a valid option for `shopt` under BUILTINS/shopt. Yet bash provides an error when trying to read

Re: bash compat* issues?

2025-01-22 Thread Koichi Murase
2025年1月22日(水) 22:03 MacBeth : > Or perhaps that second error is produced by the parent shell before This. The error message is printed even for "/bin/echo": $ BASH_COMPAT=foo bash: BASH_COMPAT: foo: compatibility value out of range $ BASH_COMPAT=4.4 /bin/echo hello bash: BAS

Re: bash compat* issues?

2025-01-22 Thread MacBeth
On Tue, Jan 21, 2025 at 11:25 PM Lawrence Velázquez wrote: > On Tue, Jan 21, 2025, at 9:49 PM, MacBeth wrote: > > "Bash-5.0 is the final version for which there will be an individual > shopt > > option for the previous version. Users should use BASH_COMPAT on bash-5.0

Re: bash compat* issues?

2025-01-21 Thread Koichi Murase
devel branch: https://git.savannah.gnu.org/cgit/bash.git/tree/doc/bash.1?h=devel&id=42c49d621d9341a530bca9422d787593e6bb#n11877 -- Koichi

Re: bash compat* issues?

2025-01-21 Thread Lawrence Velázquez
On Tue, Jan 21, 2025, at 9:49 PM, MacBeth wrote: > "Bash-5.0 is the final version for which there will be an individual shopt > option for the previous version. Users should use BASH_COMPAT on bash-5.0 > and later versions." > > ...Not sure if this means `shopt compat50

bash compat* issues?

2025-01-21 Thread MacBeth
re: GNU bash, version 5.2.37(1)-release (aarch64-apple-darwin23.4.0) --- 1) `shopt compat50` does not exist. The manpage does specify that 'compat50' is a valid option for `shopt` under BUILTINS/shopt. Yet bash provides an error when trying to read or change it: > shopt compat5

Re: [PATCH 9/9] doc/bash.1: Resync w/ lib/readline/doc/readline.3.

2025-01-02 Thread Chet Ramey
s into two separate windows in my editor and view them together. What I've started to do once I learned how much parallelism was intended between doc/bash.1 and doc/bashref.texi, was to open them in adjacent vertical windows in vim. Of course I know Emacs can do the same. I don't u

  1   2   3   4   5   6   7   8   9   10   >