Re: Integer overflow of i in string_extract_verbatim

2023-05-08 Thread Chet Ramey
, "while (c = string[i])") crashes because i = -2147483648. string[i] points to invalid memory. Thanks for the report. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey

Re: Should Use Straight Single Quote instead of Curved

2023-05-08 Thread Chet Ramey
sequences of the form $'string' are treated as a special kind of single quotes. Here's a patch. Thanks, this is a good fix. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, U

Re: Building loadables depends on main build

2023-05-08 Thread Chet Ramey
sequencing. A straightforward fix would be to make the "loadables" target depend on ".made": Thanks, this is a reasonable fix. -- ``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/

Re: Unnecessary bash warning message

2023-05-08 Thread Chet Ramey
from that perspective. -- ``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/

Fwd: Re: EOF at PS2

2023-05-09 Thread Chet Ramey
by the time this version was released. ksh88 is the relevant version. -- ``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/ --- End Message ---

nofork command substitution

2023-05-15 Thread Chet Ramey
execution), while this construct does not require any output to expand to '12345': ${| REPLY=12345; } and restores 'REPLY' to the value it had before the command substitution. -- ``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/

Re: nofork command substitution

2023-05-15 Thread Chet Ramey
On 5/15/23 2:42 PM, Oğuz İsmail Uysal wrote: On 5/15/23 8:35 PM, Chet Ramey wrote: Please test it out     $ cat     ^Z     [1]+  Stopped cat     $ x=${ fg;}     foo     foo     <^C or ^D here>     $ declare -p x     declare -- x="cat"     $ Is thi

Re: nofork command substitution

2023-05-15 Thread Chet Ramey
On 5/15/23 2:54 PM, Oğuz İsmail Uysal wrote: On 5/15/23 9:51 PM, Chet Ramey wrote: Everything is shared between the comsub and its caller, with a couple of documented exceptions. So it's just like calling `fg' in the current execution environment, but capturing the output. Oh,

Re: `wait -n` returns 127 when it shouldn't

2023-05-17 Thread Chet Ramey
yf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Adding support of the z/OS platform

2023-05-17 Thread Chet Ramey
rent signal ordering and some other messages that differ between systems (ok, between Solaris and everything else). Chet -- ``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/

Re: `wait -n` returns 127 when it shouldn't

2023-05-18 Thread Chet Ramey
er ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: `wait -n` returns 127 when it shouldn't

2023-05-18 Thread Chet Ramey
ented it from finding a job in the list. -- ``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/

Re: `wait -n` returns 127 when it shouldn't

2023-05-19 Thread Chet Ramey
On 5/19/23 6:24 AM, Robert Elz wrote: Date:Thu, 18 May 2023 14:07:32 -0400 From:Chet Ramey Message-ID: | This isn't a problem, and is a red herring. The code that manages that list | makes sure to keep as many jobs in the list as POSIX requires, su

Re: nofork command substitution

2023-05-19 Thread Chet Ramey
ary reason it differs from standard command substitution before getting into the syntax. -- ``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/

Re: nofork command substitution

2023-05-19 Thread Chet Ramey
On 5/18/23 10:14 PM, Dale R. Worley wrote: Chet Ramey writes: Bash allows the close brace to be joined to the remaining characters in the word without being followed by a shell metacharacter as a reserved word would usually require. I had to read this a couple of times to figure out what it

Re: nofork command substitution

2023-05-19 Thread Chet Ramey
On 5/19/23 6:11 AM, Robert Elz wrote: Date:Thu, 18 May 2023 22:14:28 -0400 From:"Dale R. Worley" Message-ID: <874jo9kqyj@hobgoblin.ariadne.com> | Chet Ramey writes: | > Bash allows the close brace to be joined to the remaining |

Fwd: Re: nofork command substitution

2023-05-19 Thread Chet Ramey
I don't think this ever made it to the list.--- Begin Message --- On 5/16/23 5:40 PM, Ángel wrote: On 2023-05-15 at 13:35 -0400, Chet Ramey wrote: There is an alternate form of command substitution: ${C COMMAND; } I find this description confusing, as it looks like a liter

Re: nofork command substitution

2023-05-19 Thread Chet Ramey
nd so on. Anyway, I've reordered the text a little bit to move the description closer to the introduction. Chet -- ``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/

Re: nofork command substitution

2023-05-19 Thread Chet Ramey
lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: nofork command substitution

2023-05-19 Thread Chet Ramey
nator such as semicolon)" -- ``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/

Re: nofork command substitution

2023-05-22 Thread Chet Ramey
On 5/19/23 2:42 PM, Robert Elz wrote: Date:Fri, 19 May 2023 12:03:51 -0400 From:Chet Ramey Message-ID: <0a85095a-1665-d936-b4fa-118dd158e...@case.edu> | Maybe, and certainly possible, but a more likely use is just a simple | assignment to REPLY. I

Re: setarray[unsetkey] doesn't trigger nounset in arithmetic context

2023-05-22 Thread Chet Ramey
- Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: setarray[unsetkey] doesn't trigger nounset in arithmetic context

2023-05-22 Thread Chet Ramey
you want this. -- ``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/

Re: nofork command substitution

2023-05-24 Thread Chet Ramey
n't want that for something that's performed without forking and has to be able to handle arbitrary amounts of data. Chet -- ``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/

Re: nofork command substitution

2023-05-24 Thread Chet Ramey
t, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: nofork command substitution

2023-05-24 Thread Chet Ramey
short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: parsing command substitution inside parameter expansion in interactive shell

2023-05-24 Thread Chet Ramey
t;' > ")}" bash --norc -in <<<$'"${_+$(:\n)}"' bash-5.2$ "${_+$(: bash: command substitution: line 3: unexpected EOF while looking for matching `)' > )}" Thanks for the report. These are the same issue. Chet -- ``The lyf so sho

Re: text similar to JSON can cause memory of bash to become abnormally large

2023-05-25 Thread Chet Ramey
ot;,"key":"1","key":"1"},{"key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1"},{"key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1","key":"1"}] Bash will do what you tell it to. If you tell it to generate a huge amount of text using brace expansion, it will do its best to do it. It will catch memory allocation errors, and free the already-allocated memory, but with most malloc() implementations, the memory will stay with the bash process. -- ``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/

Re: Unset during expansion w/ nofork sub

2023-05-25 Thread Chet Ramey
``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: nofork command substitution

2023-05-25 Thread Chet Ramey
On 5/25/23 6:29 AM, Koichi Murase wrote: 2023年5月24日(水) 22:27 Chet Ramey : [...] Thanks for testing it. Thank you for all the explanations and clarifications. Both are valid, but don't get too fond of ${(command)} -- I'm going to remove it in favor of people using ${ (command);

Re: nofork command substitution

2023-05-25 Thread Chet Ramey
7; ). This is consistent with the POSIX grammar. The difference, as you say, is that a command substitution is allowed as part of a word, so the closing brace isn't a reserved word according to the strict definition. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chau

Re: nofork command substitution

2023-05-25 Thread Chet Ramey
On 5/25/23 1:19 PM, Robert Elz wrote: Date:Thu, 25 May 2023 10:17:01 -0400 From:Chet Ramey Message-ID: | a nofork command substitution is | '${' compound_list '}', you omitted the extra char there, not that it matters for the purpo

Re: "environment:" instead of $0 in front of fatal errors from functions

2023-05-25 Thread Chet Ramey
craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: EOF at PS2

2023-05-26 Thread Chet Ramey
ntains a command substitution, the wrong prompts are shown: This has to do with saved parser state, not hard to fix after making the changes above. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' -

Re: array size vs index of last element (was Re: setarray[unsetkey] doesn't trigger nounset in arithmetic context)

2023-05-29 Thread Chet Ramey
On 5/28/23 2:05 AM, Martin D Kealey wrote: On Tue, 23 May 2023 at 23:32, Chet Ramey wrote: On 5/22/23 10:56 PM, Martin D Kealey wrote: For example, if one is filling an array in random order, rather than progressively adding to the end, then it is useful and makes sense to be able to ask

Re: heap-buffer-overflow in history_expand

2023-05-29 Thread Chet Ramey
-- ``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/

Re: \U expansion in single-byte locale

2023-05-29 Thread Chet Ramey
nce may by longer than the input, it can cause an overflow in printf: Thanks, this should use the same logic as ansicstr(), since it ends up calling the same translation functions. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis&

Re: ctype.h functions on bytes 0x80..0xFF

2023-05-29 Thread Chet Ramey
x27;' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Error message: cannot find _struct in shared object

2023-05-30 Thread Chet Ramey
e craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: enable builtin bugs in bash 5.2

2023-05-30 Thread Chet Ramey
ft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: enable builtin bugs in bash 5.2

2023-05-31 Thread Chet Ramey
On 5/30/23 4:46 PM, Robert Elz wrote: Date:Tue, 30 May 2023 15:28:57 -0400 From:Chet Ramey Message-ID: | H. That's not the only option. How about we load it if found but mark | it as not enabled? It will still take `enable -d' to delete

Re: set -e not working as expected with conditional operators

2023-06-02 Thread Chet Ramey
the shell does not exit if a command fails while -e is enabled, and and-or lists are one of those. -- ``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/

Re: Segfault, 29 May '23

2023-06-02 Thread Chet Ramey
ft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] use-after-free in expand_string_dollar_quote

2023-06-03 Thread Chet Ramey
lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: double free SIGSEGV and SELinux AVC denial

2023-06-04 Thread Chet Ramey
. Thanks for the report. This is the same issue as in your previous report. Chet -- ``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/

Re: Bash ONESHOT optimization in conjunction with interactive mode breaks

2023-06-07 Thread Chet Ramey
I'll fix it in the next devel branch push. Chet -- ``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/

New array_expand_once option

2023-06-13 Thread Chet Ramey
he 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/

Re: New array_expand_once option

2023-06-14 Thread Chet Ramey
one of the changes between bash-5.1 and bash-5.2. -- ``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/

Re: `jobs` shows output even when nothing has been started in the background

2023-06-14 Thread Chet Ramey
ground jobs. The fix was to remove terminated foreground jobs the shell would never notify the user about (foreground jobs not killed by a signal) from the jobs list. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' -

Re: New array_expand_once option

2023-06-15 Thread Chet Ramey
, yes, this is the way to use it. -- ``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/

Re: 5.2 fails to treat a missing conditional expression as an error of syntax

2023-06-16 Thread Chet Ramey
``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: `jobs` shows output even when nothing has been started in the background

2023-06-16 Thread Chet Ramey
erested in removed from the jobs table. That's as good a way as any if you don't know the job number or if it's not the current job. -- ``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/

bug-bash@gnu.org

2023-06-16 Thread Chet Ramey
``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

bug-bash@gnu.org

2023-06-16 Thread Chet Ramey
pretending that one is writing in some other language; I detest style guides that insist on obscuring ";then" on the end of a long line. Everyone has a preference. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis&#x

Re: posix_spawn (or vfork) support?

2023-06-16 Thread Chet Ramey
haucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: `verb=(--) declare -ax verb` causes an ENOTSOCK segfault

2023-06-19 Thread Chet Ramey
n array (declare -ax) and then propagated back to the previous scope with attributes and value intact. It will be fixed in the next devel branch push. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Che

Re: New array_expand_once option

2023-06-19 Thread Chet Ramey
On 6/17/23 7:58 AM, alex xmb ratchev wrote: On Thu, Jun 15, 2023, 20:40 alex xmb ratchev <mailto:fxmb...@gmail.com>> wrote: On Thu, Jun 15, 2023, 15:06 Chet Ramey mailto:chet.ra...@case.edu>> wrote: On 6/14/23 5:18 PM, alex xmb ratchev wrote:

Re: New array_expand_once option

2023-06-19 Thread Chet Ramey
y or unset variable. That doesn't matter with `[[', but does with `['. -- ``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/

Re: New array_expand_once option

2023-06-19 Thread Chet Ramey
by default. -- ``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/

Re: No form commsub if last token ends with & or ;

2023-06-19 Thread Chet Ramey
ng the lines of what Martin Kealey said, it's easy to output a newline if the last token the parser read before the closing `}' was a newline, and that solves this problem. -- ``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/

Re: New array_expand_once option

2023-06-19 Thread Chet Ramey
On 6/19/23 3:42 PM, alex xmb ratchev wrote: in short , i no [ and no compat .. leaving 2 out of 4 answers of u What does that mean? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ram

Re: Various small leaks

2023-06-21 Thread Chet Ramey
ga, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Various small leaks

2023-06-21 Thread Chet Ramey
So I was testing on Linux, configured with: Have you considered running `make tests' on a bash binary built with this configuration? I'd be interested in those results. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis

Re: [PATCH] uninitialized variable access

2023-06-22 Thread Chet Ramey
lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] fix compgen -V leak

2023-06-22 Thread Chet Ramey
to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] null pointer deref in bindpwd

2023-06-22 Thread Chet Ramey
x27;' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: uninitialized variable access in read_builtin

2023-06-22 Thread Chet Ramey
so uw_anonclose frees an uninitialized pointer value later * convert_validarray_flags_to_arrayval_flags doesn't initialize avflags Thanks. I appreciate you running the test suite. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis

Re: EOF at PS2

2023-06-26 Thread Chet Ramey
with ignoreeof, like Thanks for the report. -- ``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/

Re: [PATCH] completion display interrupt leak handling

2023-06-26 Thread Chet Ramey
this patch is an OK fix. Thanks, this is clean. I like it. Chet -- ``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/

Re: xtrace ansi quoting vs shell metas

2023-06-26 Thread Chet Ramey
quoting. Chet -- ``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/

Re: leak in skip_double_quoted for funsub

2023-06-27 Thread Chet Ramey
On 6/26/23 7:34 PM, Grisha Levit wrote: diff --git a/subst.c b/subst.c Thanks for the report. -- ``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/

Re: xmalloc error involving functrace, int trap and ps4

2023-06-27 Thread Chet Ramey
aft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: temp env vs export

2023-06-27 Thread Chet Ramey
hing that shouldn't be there in the first place. What do you think? Chet -- ``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/

Re: +=() can be used to set illegal indices

2023-06-27 Thread Chet Ramey
alue to an empty array. Chet -- ``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/

Re: [PATCH] unwind protect for bind -x commands

2023-06-28 Thread Chet Ramey
long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Bash silently exits where attempting to assign an array to certain built-in variables using declare

2023-06-29 Thread Chet Ramey
so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Bash silently exits where attempting to assign an array to certain built-in variables using declare

2023-06-29 Thread Chet Ramey
On 6/29/23 9:38 AM, Kerin Millar wrote: On Thu, 29 Jun 2023 08:51:58 -0400 Chet Ramey wrote: On 6/28/23 1:14 PM, Kerin Millar wrote: This report is based on an observation made within the depths of this thread: https://lists.gnu.org/archive/html/bug-bash/2023-06/msg00094.html. Attempting

Re: Bash silently exits where attempting to assign an array to certain built-in variables using declare

2023-06-29 Thread Chet Ramey
On 6/29/23 8:51 AM, Chet Ramey wrote: It should be consistent, at least. I think the string assignment behavior is the most reasonable: assignments return 1 but there's no assignment error. I'll look at how compound assignments are different. I have reconsidered this. Making assign

Re: $((expr)) allows the hexadecimal constant "0x"

2023-06-29 Thread Chet Ramey
sion, but it's hard to see how it's useful. -- ``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/

Re: $((expr)) allows the hexadecimal constant "0x"

2023-06-29 Thread Chet Ramey
h hex constants? Thanks for reporting it, though. Chet -- ``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/

Re: $((expr)) allows the hexadecimal constant "0x"

2023-06-29 Thread Chet Ramey
letting you know. No, definitely not. It's established behaviour, and should not be removed without an explicit shopt. It's clearly a bug -- it's an invalid C constant. I suppose we can call it an extension. -- ``The lyf so short, the craft so long to lerne.'' - Chauce

Re: Docs: Duplicated explanation of "quote removal" on manual

2023-06-29 Thread Chet Ramey
On 6/29/23 11:43 AM, Sebastian Carlos wrote: Hello, The manual seems to repeat the same information two paragraphs apart: Thanks for the report. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Che

Re: Enable compgen even when programmable completions are not available?

2023-06-29 Thread Chet Ramey
for doing that? -- ``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/

Re: Enable compgen even when programmable completions are not available?

2023-06-29 Thread Chet Ramey
-- ``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/

Re: Enable compgen even when programmable completions are not available?

2023-06-30 Thread Chet Ramey
On 6/29/23 6:05 PM, Kerin Millar wrote: On Thu, 29 Jun 2023 16:39:52 -0400 Chet Ramey wrote: On 6/25/23 2:38 PM, Eli Schwartz wrote: compgen is a useful builtin for inspecting information about the shell context e.g. in scripts -- a good example of this is compgen -A function or compgen -A

Re: +=() can be used to set illegal indices

2023-06-30 Thread Chet Ramey
o do it that way. -- ``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/

Re: Enable compgen even when programmable completions are not available?

2023-06-30 Thread Chet Ramey
all, of course. You just have to decide whether or not it's worth the effort to accommodate non-default option choices. What about aliases? Arrays? Brace expansion? Process substitution? Extglobs? All of those can be compiled out. What's the `bash core' you're going to assume? --

Re: [PATCH] printing multiple heredocs in list

2023-06-30 Thread Chet Ramey
That way you shouldn't need to print any deferred here-documents in make_command_string(). -- ``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/

Re: [PATCH] fix printing command after group with heredoc

2023-06-30 Thread Chet Ramey
699,702 --- 706,710 cprintf ("}"); + was_heredoc = 0;/* last wasn't heredoc/newline */ group_command_nesting--; -- ``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/

Re: [BUG] Associative array initial reference name is made available in another context

2023-07-03 Thread Chet Ramey
is is known as dynamic scoping. There is text in the manual describing it. -- ``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/

Re: [PATCH] sleep builtin signal handling

2023-07-03 Thread Chet Ramey
#x27;' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Enable compgen even when programmable completions are not available?

2023-07-03 Thread Chet Ramey
rt, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: +=() can be used to set illegal indices

2023-07-03 Thread Chet Ramey
On 6/30/23 3:09 PM, Emanuele Torre wrote: On Fri, Jun 30, 2023 at 12:16:46PM -0400, Chet Ramey wrote: What I would have expected was something like this: $ x=([9223372036854775805]=foo) $ x+=( {1..5} ); echo "this won't run" bash: some "invalid assignment"

Re: Enable compgen even when programmable completions are not available?

2023-07-03 Thread Chet Ramey
.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: +=() can be used to set illegal indices

2023-07-03 Thread Chet Ramey
On 7/3/23 5:56 PM, alex xmb ratchev wrote: looked into non finite number libs ? gawk like .. ? bignums? No. intmax_t is enough for the shell. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ram

Re: Enable compgen even when programmable completions are not available?

2023-07-04 Thread Chet Ramey
``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] allow quoting completions w/o filename treatment

2023-07-05 Thread Chet Ramey
`quoteall' (same objection) or `quoteallwords' (starting to get a bit unwieldy). -- ``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/

Re: Completion list updates on dynamic builtin load

2023-07-05 Thread Chet Ramey
On 7/4/23 4:10 AM, Grisha Levit wrote: The `enabled' and `disabled' completion lists don't get updated when a dynamic builtin is loaded: Thanks for the report. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita br

Re: Docs: Mention that hash resets after changing PATH

2023-07-05 Thread Chet Ramey
short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] leak in rl_filename_completion_function

2023-07-05 Thread Chet Ramey
first argument or a newly-allocated string, so it's up to the rewrite hook to do the allocation. -- ``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/

<    5   6   7   8   9   10   11   12   13   14   >