Re: GROUPS

2021-08-13 Thread Franklin, Jason
On Fri, 2021-08-13 at 10:10 -0400, Chet Ramey wrote: > As long as you stick to things POSIX standardizes. Relevant here, the > standard even includes a list of variables you should avoid using because > various shells and applications use them. GROUPS is not on this list that I can tell. It would

Re: GROUPS

2021-08-11 Thread Franklin, Jason
On Wed, 2021-08-11 at 20:36 -0400, Greg Wooledge wrote: > On Wed, Aug 11, 2021 at 08:00:12PM -0400, Franklin, Jason wrote: > > This doesn't work unless it was recently fixed. A variation does... > > > > bash-5.0$ echo $BASH_VERSION > > 5.0.17(1)-release > &

Re: GROUPS

2021-08-11 Thread Franklin, Jason
Chet: My apologies in advance for not responding in thread. The bug-bash archive interface doesn't expose the "Message-ID" header anywhere I can find, and I am not a subscriber. I suppose I should become one. :) > I believe I'd rather have variables behave as they're documented. It's more > pr

Re: GROUPS

2021-08-10 Thread Franklin, Jason
Hey, Robert: Thanks for the input! Quoting you here with some of my thoughts... > Using a variable name that's outside what POSIX specifies is hardly > using a feature that's outside POSIX - if it were then there would be > no safe non-trivial scripts, since any variable name might be made magic

Re: GROUPS

2021-08-09 Thread Franklin, Jason
Hey, Greg! I presume that you are the Wooledge who hosts the BashFAQ. If so, thanks for hosting that. It's a huge help. :) On Mon, 2021-08-09 at 20:36 -0400, Greg Wooledge wrote: > On Mon, Aug 09, 2021 at 05:35:56PM -0400, Franklin, Jason wrote: > > Should bash, invoked with &

GROUPS

2021-08-09 Thread Franklin, Jason
Greetings: I discovered today that the GROUPS variable is special in Bash. I moved some scripts to a new box, and they stopped working. On this box, /bin/sh linked to /bin/bash instead instead of /bin/dash. Scripts of of this form... #!/bin/sh GROUPS='foo bar' # do something with $GROUPS

Re: [bug] Segmentation fault in the "fc" builtin

2020-05-05 Thread Franklin, Jason
On 5/5/20 11:41 AM, Chet Ramey wrote: > Thanks for the report and your careful analysis. > >> >> Allow me to explain the reasoning behind the patch... >> >> From the CHANGES file, we see this note concerning the "fc" builtin: >> >> b. The fc builtin now interprets -0 as the current command line

[bug] Segmentation fault in the "fc" builtin (additional change)

2020-05-05 Thread Franklin, Jason
Greetings: After sending the original email concerning this issue, I delved into the code again for one last review. I discovered that, even after the original fix a segmentation fault is still possible, because histbeg could be higher than histend! The idea from "fc" would be to print the list

[bug] Segmentation fault in the "fc" builtin

2020-05-05 Thread Franklin, Jason
Greetings: Yesterday, I encountered a segmentation fault when using the "fc" builtin command. I cloned the Bash source code from GNU Savannah, and I verified that the bug is still present in the latest commits to the master and devel branches (the work below applies to "devel"). To reproduce...

Re: [bug] PROMPT_COMMAND is not executed as expected in some situations

2020-04-18 Thread Franklin, Jason
On 4/16/20 10:11 AM, Chet Ramey wrote: > On 4/16/20 9:21 AM, Franklin, Jason wrote: >> On 4/15/20 5:35 PM, Chet Ramey wrote: >>> These all pretty much all fall into the category of the editor reprinting >>> the prompt before it returns. >> >> Hmmm... >&g

Re: [bug] PROMPT_COMMAND is not executed as expected in some situations

2020-04-16 Thread Franklin, Jason
On 4/15/20 5:35 PM, Chet Ramey wrote: > These all pretty much all fall into the category of the editor reprinting > the prompt before it returns. Hmmm... So, is there no way to have Bash handle the printing of the prompt after the return of the command and of the editor? This would allow PROMPT_

[bug] PROMPT_COMMAND is not executed as expected in some situations

2020-04-15 Thread Franklin, Jason
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/bash-orJ5jM/bash-5.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wno-parentheses -Wno-format-security uname out

Re: Follow-up on PROMPT_COMMAND bug report (submitted today)

2020-04-15 Thread Franklin, Jason
On 4/15/20 2:44 PM, Chet Ramey wrote: > On 4/15/20 11:45 AM, Franklin, Jason wrote: >> Greetings: >> >> I realized that I didn't include my email when I used bashbug to report >> my issue, so I'm sending a follow-up email so that the maintainers can >> be

Follow-up on PROMPT_COMMAND bug report (submitted today)

2020-04-15 Thread Franklin, Jason
Greetings: I realized that I didn't include my email when I used bashbug to report my issue, so I'm sending a follow-up email so that the maintainers can be in touch. I browsed the code and tried to fix the issue myself by modifying the "prompt_again()" function to execute PROMPT_COMMAND directly