Re: Bash-5.2-alpha available

2022-03-31 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: Bash regexp parsing would benefit from safe recursion limit

2022-03-31 Thread Chet Ramey
On 3/30/22 7:48 PM, Steffen Nurpmeso wrote: Chet Ramey wrote in : |On 3/30/22 11:16 AM, willi1337 bald wrote: |> Bash Version: 5.1 |> Patch Level: 16 |> Release Status: release |> |> Description: |> |> A deeply nested and incorrect regex expression

Re: Bash regexp parsing would benefit from safe recursion limit

2022-03-30 Thread Chet Ramey
e it's own regexp engine; it uses whatever POSIX regexp functions are provided by the C library (regcomp/regexec/regfree/regerror). -- ``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: defuncted printf process when using wpa_supplicant

2022-03-30 Thread Chet Ramey
s. The shell started to run the process substitution sits there peacefully, not consuming any resources, until wpa_supplicant exits and everything gets reaped by init/systemd/whatever. -- ``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: forwarded weirdness report

2022-03-28 Thread Chet Ramey
ed alias -- the parsing takes place before executing the `alias x=...' command. -- ``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 Manual section 6.7 Arrays should mention array append notation

2022-03-24 Thread Chet Ramey
On 3/24/22 5:15 PM, Zachary Santer wrote: Thank you. Also, "append to a array variable" should be "append to an array variable". Thanks. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ram

Re: Bash Manual section 6.7 Arrays should mention array append notation

2022-03-24 Thread Chet Ramey
arrays. I don't regenerate the printed manuals on every devel branch push. You need to look at the manual source files. -- ``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: for loop over parameter expansion of array can miss resulted empty list

2022-03-24 Thread Chet Ramey
bug-bash/2022-03/msg00033.html It will be fixed in the next release. 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: parameter expansion null check fails for arrays when [*] or [@] is used

2022-03-23 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: parameter expansion null check fails for arrays when [*] or [@] is used

2022-03-23 Thread Chet Ramey
re cases where bash doesn't correctly propagate quoted null strings, and those need to be fixed. -- ``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-5.2-alpha available

2022-03-22 Thread Chet Ramey
On 3/22/22 10:00 AM, Andreas Schwab wrote: I still see clobbered history lines: I took it out. That version isn't in the devel branch yet. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc

Re: 5.2-alpha completion script source crash

2022-03-22 Thread Chet Ramey
On 3/21/22 6:33 PM, konsolebox wrote: On Sat, Feb 19, 2022 at 9:34 PM Chet Ramey wrote: Thanks for the report. This is the result of needing to clean up parser state before recursively calling it to parse the command substitution. Just tested devel. This one's fixed as well

Re: Bash-5.2-alpha available

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

Re: Request for new 5.2 alpha?

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

Re: 5.2-alpha prompt broken on next line

2022-03-21 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: [Bug Report] The Unexpected Behavior When Using ANSI Escape Code

2022-03-21 Thread Chet Ramey
ss told otherwise, it assumes that every character it outputs contributes to that physical cursor position. Eventually, the incorrect value that results from non-printing characters will mess up redisplay. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita

Re: BASH_COMMAND should be set before PS0

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

Re: [PATCH] Fix escaping of \034 (^\) in paths for \w, \W, and \s

2022-03-14 Thread Chet Ramey
, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Terminal settings change unexpectedly after running a program via keybinding

2022-03-11 Thread Chet Ramey
'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo'

2022-03-09 Thread Chet Ramey
On 3/9/22 12:25 PM, Andreas Schwab wrote: > On Mär 09 2022, Chet Ramey wrote: > >> Basically, musl libc enabled the faccessat2(2) system call and started >> using it in faccessat(2). access(2) ends up calling faccessat, which now >> uses faccessat2 if it's available. Alpin

Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo'

2022-03-09 Thread Chet Ramey
locked by security policy." And so bash assumed that access returning EPERM meant that the binary wasn't executable. This has all been fixed in the current versions of Alpine Linux and the CircleCI Docker version. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars

Re: Feature Request: Add option to make completed values always become properly escaped

2022-03-07 Thread Chet Ramey
are feature frozen. 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: compgen -W [wordlist] will do command subtitution and parameter expansion in wordlist

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

Re: Bash-5.2-alpha available

2022-03-02 Thread Chet Ramey
On 3/2/22 6:13 AM, Andreas Schwab wrote: > On Mär 01 2022, Chet Ramey wrote: > >> Thanks. I can easily fix the pointer aliasing issue, but it is not going to >> be identical to incremental search. > > I'm still getting crashes due to double free. Thanks, this was already

Re: Bash-5.2-alpha available

2022-03-01 Thread Chet Ramey
On 2/27/22 9:30 AM, Andreas Schwab wrote: > On Feb 17 2022, Chet Ramey wrote: > >> Thanks for the report. This is a different issue; some assumptions that the >> change to history-search-{forward,backward} uncovered. > > It's still broken. You get a double free

Re: declare -x non-exportable variable types

2022-02-25 Thread Chet Ramey
On 2/25/22 12:55 PM, Léa Gris wrote: Le 25/02/2022 à 16:49, Chet Ramey écrivait : You can't export array variables, period. You can't export attributes, only variable names and values. You still can't export attributes. There is no way to export attributes Chet, I heard you, I understood

Re: declare -x non-exportable variable types

2022-02-25 Thread Chet Ramey
ypeset statements would error if flags are incompatible with -x export. There are no flags that are compatible or incompatible with export. -- ``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: Feature Request: Add option to make completed values always become properly escaped

2022-02-25 Thread Chet Ramey
On 2/25/22 3:29 AM, konsolebox wrote: On Mon, Feb 21, 2022 at 4:32 PM Chet Ramey wrote: What does `properly quoted' mean here and how does it differ from the quoting you get when you force complete to treat the completions as filenames with `complete -o filenames'? I realized that a "

Re: bash completion mangles file names with newlines

2022-02-23 Thread Chet Ramey
rs longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo'

2022-02-22 Thread Chet Ramey
know what else to tell you. I can't reproduce it using ostensibly the same environment you have, so I can't be much help from here. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case

Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo'

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

Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo'

2022-02-22 Thread Chet Ramey
be in /usr/local/bin/npm, I guess do the same thing I did in the one I started: ls -l /usr/local/bin/npm and if it's a symlink ls -l -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.ed

Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo'

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

Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo'

2022-02-22 Thread Chet Ramey
onga, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo'

2022-02-22 Thread Chet Ramey
pm' instead. -- ``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: Feature Request: Add option to make completed values always become properly escaped

2022-02-21 Thread Chet Ramey
aucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: command line not saved after "event not found" error

2022-02-20 Thread Chet Ramey
passed onto further processing stages. If you want an opportunity to re-edit a failed history expansion, set the `histreedit' shell option. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc

Re: 5.2-alpha completion script source crash

2022-02-19 Thread Chet Ramey
ack.". Thanks for the report. This is the result of needing to clean up parser state before recursively calling it to parse the command substitution. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, C

Re: Bash-5.2-alpha available

2022-02-17 Thread Chet Ramey
On 2/16/22 4:42 AM, Andreas Schwab wrote: On Feb 10 2022, Chet Ramey wrote: On 2/10/22 9:53 AM, Andreas Schwab wrote: On Jan 21 2022, Chet Ramey wrote: i. The non-incremental history searches now leave the current history offset at the position of the last matching history entry, like

Re: Long variable value get corrupted sometimes

2022-02-16 Thread Chet Ramey
tml -- ``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: Sus behaviour when cmd string ends with single backslash

2022-02-14 Thread Chet Ramey
moval. In general, I think it's better to err on the side of preserving output here. Existing shell behavior varies, so you can't really count on anything. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTec

Re: shopt -u compat* (re)sets BASH_COMPAT to 51

2022-02-14 Thread Chet Ramey
crates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: shopt -u compat* (re)sets BASH_COMPAT to 51

2022-02-13 Thread Chet Ramey
brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Interesting bug

2022-02-13 Thread Chet Ramey
ot; || { echo "foo";} # --> Finished I guess it closes the function and {echo is interpreted as string or so, but that is probably not all (testCode is e.g. never executed). It's not executed because it's part of a function that's never called. -- ``The lyf so short, the craft

Re: Interesting bug

2022-02-13 Thread Chet Ramey
longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Dirspell and cdspell don't work when dealing with non-unixy filesystem structures

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

Re: Bash-5.2-alpha available

2022-02-10 Thread Chet Ramey
On 2/10/22 9:53 AM, Andreas Schwab wrote: On Jan 21 2022, Chet Ramey wrote: i. The non-incremental history searches now leave the current history offset at the position of the last matching history entry, like incremental search. That makes history-search-backward significantly less

Re: [5.1+] wait may return wrong status from function with EXIT trap

2022-02-08 Thread Chet Ramey
, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

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

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread Chet Ramey
You might actually have said something like this at some point. I'd prefer to think your memory has conflated these two things, and that this is how you remember it. That's better than the alternative. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita br

Re: Empty array referenced by indirection reports unbound variable

2022-02-06 Thread Chet Ramey
On 2/6/22 4:23 AM, konsolebox wrote: On Thu, Dec 30, 2021 at 4:35 PM Chet Ramey wrote: Let's try it. Thanks for the report. It seems to be already fixed in 5.2-alpha (thanks), but I can't see it mentioned in the changelog. Can you kindly confirm if it really is? From CHANGES: "bb.

Re: Incorrect alias expansion within command substitution

2022-02-05 Thread Chet Ramey
brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Incorrect alias expansion within command substitution

2022-02-05 Thread Chet Ramey
On 2/5/22 3:44 PM, Alex fxmbsw7 Ratchev wrote: On Sat, Feb 5, 2022 at 9:39 PM Alex fxmbsw7 Ratchev wrote: On Sat, Feb 5, 2022 at 7:55 PM Chet Ramey wrote: On 2/4/22 6:17 PM, Alex fxmbsw7 Ratchev wrote: what about this viewing point aliases can start, $(('s, but not end... this is unlogic

Re: Incorrect alias expansion within command substitution

2022-02-05 Thread Chet Ramey
On 2/4/22 6:21 PM, Alex fxmbsw7 Ratchev wrote: it seems me here the data was used as var inside $(( not as alias That, at least, is right. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc

Re: Incorrect alias expansion within command substitution

2022-02-05 Thread Chet Ramey
set it) and evaluate that as an expression. It evaluates to 3, and the string "3" becomes the result of the arithmetic expansion. We run printf %s\n 3 and get `3' as output. Understand? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippo

Re: Incorrect alias expansion within command substitution

2022-02-05 Thread Chet Ramey
or matching `)' alias.sh: line 16: syntax error: unexpected end of file cause bash doesnt parse aliases yet into pre parse state yea i just wish it would, such as no code error for valid code Sigh. It's not valid code, and I hope you understand why it's not. -- ``The lyf so short, the craft so long t

Re: Incorrect alias expansion within command substitution

2022-02-05 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: Cursor jumps to leftmost column on trap ... SIGALRM

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

Re: Cursor jumps to leftmost column on trap ... SIGALRM

2022-02-04 Thread Chet Ramey
On 2/4/22 4:11 PM, Markus Schwarzenberg wrote: On Fri, 4 Feb 2022 13:19:37 -0500 Chet Ramey wrote: On 2/4/22 9:54 AM, Markus Schwarzenberg wrote: Bash Version: 5.1 Patch Level: 8 Release Status: release Description: The position of the cursor changes to the first column when bash

Re: Incorrect alias expansion within command substitution

2022-02-04 Thread Chet Ramey
) blabla $( e o f ) is pure early bug It's simply not the `flat data' you think it is or should be. (And that construct is certainly not something anyone should use, `early bug' or not.) -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis''

Re: Incorrect alias expansion within command substitution

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

Re: Incorrect alias expansion within command substitution

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

Re: Cursor jumps to leftmost column on trap ... SIGALRM

2022-02-04 Thread Chet Ramey
about 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: Incorrect alias expansion within command substitution

2022-02-04 Thread Chet Ramey
vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: Incorrect alias expansion within command substitution

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

Re: Incorrect alias expansion within command substitution

2022-02-03 Thread Chet Ramey
le useful, it doesn't solve this problem. Interesting idea. It would be a no-op (or an error) at the global scope, naturally. -- ``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: Incorrect alias expansion within command substitution

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

Re: Incorrect alias expansion within command substitution

2022-02-03 Thread Chet Ramey
ble to help with scripts written in that style, or expect them to invest time learning it. That's just not reasonable. -- ``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: Incorrect alias expansion within command substitution

2022-02-03 Thread Chet Ramey
available. -- ``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: Incorrect alias expansion within command substitution

2022-02-03 Thread Chet Ramey
documented. -- ``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: Incorrect alias expansion within command substitution

2022-02-03 Thread Chet Ramey
On 2/2/22 1:30 PM, Robert Elz wrote: Date:Wed, 2 Feb 2022 11:38:30 -0500 From:Chet Ramey Message-ID: <7c422cbb-bba8-0a57-a565-eeb115120...@case.edu> | > How accurately can you reconstitute? That is, can you maintain the | > difference b

Re: Process substitution as part of a word [was: Incorrect alias expansion ...]

2022-02-03 Thread Chet Ramey
On 2/3/22 9:09 AM, Martijn Dekker wrote: Op 02-02-22 om 20:59 schreef Chet Ramey: [...] it makes no sense to join a process substitution to another word. But it does. In arguments that look like assignments, and in GNU-style long options, file names can be part of a larger word. You're

Re: Incorrect alias expansion within command substitution

2022-02-02 Thread Chet Ramey
On 2/2/22 1:40 PM, Martijn Dekker wrote: > Op 01-02-22 om 15:23 schreef Chet Ramey: >> Historically, bash (and ksh93) has favored the former. Just about all the >> other shells claiming some sort of POSIX conformance favor the latter (all >> the ash-based shells, yash, mksh)

Re: Incorrect alias expansion within command substitution

2022-02-02 Thread Chet Ramey
On 2/2/22 11:14 AM, L A Walsh wrote: > On 2022/02/01 07:50, Chet Ramey wrote: >> >> >> "Historically some shells used simple parenthesis counting to find the >> terminating ')' and therefore did not account for aliases. However, such >> shells never conform

Re: Incorrect alias expansion within command substitution

2022-02-02 Thread Chet Ramey
ply doesn't, whether you run in posix mode or not. -- ``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: How to display parameters in a function backtrace?

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

Re: Incorrect alias expansion within command substitution

2022-02-02 Thread Chet Ramey
On 2/1/22 5:31 PM, Robert Elz wrote: > Date:Tue, 1 Feb 2022 15:39:06 -0500 > From: Chet Ramey > Message-ID: <2816cf78-d7be-b9e1-733d-12427b04c...@case.edu> > > | When you say "just parsed," when are aliases expanded? > > During

Re: Incorrect alias expansion within command substitution

2022-02-01 Thread Chet Ramey
On 2/1/22 1:47 PM, Robert Elz wrote: Date:Tue, 1 Feb 2022 10:23:53 -0500 From:Chet Ramey Message-ID: <1e33f111-b9ff-2d70-adf8-934906321...@case.edu> | Historically, bash (and ksh93) has favored the former. Just about all the | other shells claimin

Re: Incorrect alias expansion within command substitution

2022-02-01 Thread Chet Ramey
On 2/1/22 10:23 AM, Chet Ramey wrote: If you defer alias expansion until execution, you lose the (posix- encouraged but officially unspecified according to the approved interpretation of issue 1342) ability to have aliases affect command parsing in the command substitution: Well, I went back

Re: Incorrect alias expansion within command substitution

2022-02-01 Thread Chet Ramey
sort of POSIX conformance favor the latter (all the ash-based shells, yash, mksh). What are your plans here? 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 not escaping escape sequences in directory names

2022-01-24 Thread Chet Ramey
these. -- ``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-5.2-alpha available

2022-01-24 Thread Chet Ramey
On 1/22/22 2:54 PM, Chet Ramey wrote: On 1/22/22 2:51 PM, Andreas Schwab wrote: On Jan 22 2022, Chet Ramey wrote: Because they should behave identically to other forms of quoting that bash handles in here-documents. Why should $'' be different from '' only within here-document bodies

Re: Bash not escaping escape sequences in directory names

2022-01-24 Thread Chet Ramey
On 1/22/22 3:48 PM, Andreas Kusalananda Kähäri wrote: On Sat, Jan 22, 2022 at 01:28:50PM -0500, Chet Ramey wrote: On 1/22/22 5:52 AM, Andreas Kusalananda Kähäri wrote: On Fri, Jan 21, 2022 at 06:33:02PM -0500, Chet Ramey wrote: On 1/21/22 6:13 PM, Mike Jonkmans wrote: On Fri, Jan 21, 2022

Re: Bash not escaping escape sequences in directory names

2022-01-24 Thread Chet Ramey
go too far with this. Following this train to its logical end means that `pwd' and `cd' would have to sanitize their output, since the same thing can happen. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.e

Re: Bash-5.2-alpha available

2022-01-22 Thread Chet Ramey
On 1/22/22 2:51 PM, Andreas Schwab wrote: On Jan 22 2022, Chet Ramey wrote: Because they should behave identically to other forms of quoting that bash handles in here-documents. Why should $'' be different from '' only within here-document bodies? $'' is left as-is inside double quotes, why

Re: Bash-5.2-alpha available

2022-01-22 Thread Chet Ramey
On 1/22/22 2:24 PM, Sam James wrote: On 22 Jan 2022, at 18:52, Oğuz wrote: 22 Ocak 2022 Cumartesi tarihinde Chet Ramey yazdı: Because they should behave identically to other forms of quoting that bash handles in here-documents. Why should $'' be different from '' only within here-document

Re: Bash-5.2-alpha available

2022-01-22 Thread Chet Ramey
On 1/22/22 1:52 PM, Oğuz wrote: 22 Ocak 2022 Cumartesi tarihinde Chet Ramey <mailto:chet.ra...@case.edu>> yazdı: Because they should behave identically to other forms of quoting that bash handles in here-documents. Why should $'' be different from '' only within here-docume

Re: Bash-5.2-alpha available

2022-01-22 Thread Chet Ramey
On 1/22/22 1:31 PM, Oğuz wrote: 22 Ocak 2022 Cumartesi tarihinde Chet Ramey <mailto:chet.ra...@case.edu>> yazdı: $'\n' is identical to ' ' Here-document bodies are parsed as if they are within double quotes, and single quotes are not special within double quote

Re: Bash not escaping escape sequences in directory names

2022-01-22 Thread Chet Ramey
On 1/22/22 5:52 AM, Andreas Kusalananda Kähäri wrote: On Fri, Jan 21, 2022 at 06:33:02PM -0500, Chet Ramey wrote: On 1/21/22 6:13 PM, Mike Jonkmans wrote: On Fri, Jan 21, 2022 at 03:29:47PM -0500, Chet Ramey wrote: On 1/21/22 1:43 AM, Lawrence Velázquez wrote: Personally, I would be less

Re: Bash-5.2-alpha available

2022-01-22 Thread Chet Ramey
On 1/22/22 10:01 AM, Andreas Schwab wrote: bash --posix -c 'read -t1 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: Bash-5.2-alpha available

2022-01-22 Thread Chet Ramey
On 1/22/22 4:09 AM, Oğuz wrote: On Fri, Jan 21, 2022 at 6:28 PM Chet Ramey wrote: a. Fixed a bug that assigned a value to the variable name supplied as an argument to `wait -p' when there were no jobs. This doesn't seem like it's fixed $ bash -c 'echo $BASH_VERSION; unset foo; for i

Re: Bash not escaping escape sequences in directory names

2022-01-21 Thread Chet Ramey
On 1/21/22 6:13 PM, Mike Jonkmans wrote: On Fri, Jan 21, 2022 at 03:29:47PM -0500, Chet Ramey wrote: On 1/21/22 1:43 AM, Lawrence Velázquez wrote: Personally, I would be less than pleased if my whole terminal turned red just because I changed into a directory that happened to have a weird

Re: Bash not escaping escape sequences in directory names

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

Re: Bash not escaping escape sequences in directory names

2022-01-21 Thread Chet Ramey
sequences, bash will interpret them literally Thanks for the report. I'll take a look at this for a future release. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp

Bash-5.2-alpha available

2022-01-21 Thread Chet Ramey
set. -- ``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: devel: Questions about quoting in the new replacement ${var/pat/&}

2022-01-20 Thread Chet Ramey
On 1/20/22 11:43 AM, Koichi Murase wrote: 2022年1月21日(金) 1:33 Chet Ramey : Contributions are always welcome. Thank you. I'll later work on it though I actually don't have confidence in my English ability. Anyway, I believe other people can correct my broken English. I'm a fine editor

Re: devel: Questions about quoting in the new replacement ${var/pat/&}

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

Re: devel: Questions about quoting in the new replacement ${var/pat/&}

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

Re: error in hours given by date -d @anyNumber

2022-01-17 Thread Chet Ramey
) This is not a bash bug, since `date' is not a bash builtin. -- ``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: Feature request

2022-01-11 Thread Chet Ramey
raft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

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