Re: gettext feature request

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

Re: gettext feature request

2021-07-29 Thread Chet Ramey
On 7/29/21 4:33 PM, Eli Schwartz wrote: On 7/24/21 2:48 PM, Chet Ramey wrote: On 7/24/21 10:35 AM, Jean-Jacques Brucker wrote: Planning to use the /$"string/" feature in my bash code made me think too much : https://github.com/foopgp/bash-libs/tree/main/i18n ...what I really *lo

Re: gettext feature request

2021-07-29 Thread Chet Ramey
On 7/27/21 4:40 PM, Jean-Jacques Brucker wrote: Le 27/07/2021 à 16:39, Chet Ramey a écrit : That's not a good name. It provides no insight about the option or its purpose. Maybe something like `quote_translation'. You are right. And I was sorely lacking in imagination. How about

Re: gettext feature request

2021-07-27 Thread Chet Ramey
On 7/24/21 4:45 PM, Jean-Jacques Brucker wrote: > > Le 24/07/2021 à 20:48, Chet Ramey a écrit : >> So you want a translation feature without any further interpretation? Or >> one just without command substitution? > > Translation feature without any further interpreta

Re: Infinite loop triggered by extglob +(!(x))y

2021-07-25 Thread Chet Ramey
On 7/25/21 5:01 PM, Andreas Schwab wrote: On Jul 25 2021, Chet Ramey wrote: In the bash build directory, for instance, it fails right away, as it should: there aren't any files ending in `y'. It doesn't matter whether the file name contains `y', just how long it is. That's not what I

Re: Infinite loop triggered by extglob +(!(x))y

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

Re: should bashdb be included w/bash?

2021-07-24 Thread Chet Ramey
sh-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: gettext feature request

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

Re: Crash on large brace expansion

2021-07-15 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-5.1-rc3 available

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

Re: parameter expansion with `:` does not work

2021-07-07 Thread Chet Ramey
with := and go on with your code. It's the least intrusive change, and won't disturb your logic. -- ``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 with `:` does not work

2021-07-07 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: parameter expansion with `:` does not work

2021-07-07 Thread Chet Ramey
ps not in Gnu Bash? What are you talking about? What do you think you're saying? -- ``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 with `:` does not work

2021-07-07 Thread Chet Ramey
On 7/7/21 6:10 PM, lisa-as...@perso.be wrote: The line : ${fltype:-"texi,org"} should be an alternative to fltype=${fltype:-"texi,org"} It absolutely is not. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'

Re: parameter expansion with `:` does not work

2021-07-07 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 completion after a multiline string

2021-07-06 Thread Chet Ramey
using the current set of APIs. I'll have to think about it a little more. 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 on Tru64

2021-06-30 Thread Chet Ramey
- Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: bash on Tru64

2021-06-30 Thread Chet Ramey
On 6/30/21 3:34 PM, Jay K wrote: Did the same thing happen when linking builtins/mkbuiltins? Is this gcc? -- ``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

Re: bash on Tru64

2021-06-30 Thread Chet Ramey
? Eh, they probably are, but then compiler is linker. Remove them for linking? Did the same thing happen when linking builtins/mkbuiltins? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.edu

Re: bash on Tru64

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

Re: simple prob?

2021-06-30 Thread Chet Ramey
On 6/29/21 5:05 PM, L A Walsh wrote: So...hmmm...how is it that jobs picks up the right answer in what would seem to be a subshell?  Special cased? Yes. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech

Re: bash completion after a multiline string

2021-06-29 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: [PATCH] fix super-linear complexity of ${v^} and ${v//A}

2021-06-28 Thread Chet Ramey
is larger than about 1. Also, the time complexity of ${v^} becomes quadratic if the variable contains many newlines. Thanks for the report and fixes. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey

Re: [PATCH] Fix READLINE_ARGUMENT with "M-1 M-2" and with `vi-arg-digit'

2021-06-28 Thread Chet Ramey
s code can work if the command following the digit argument is something like M-a that traverses into a new keymap. It should return M-a ("\ea"), but it looks like it will just return "a". -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars lo

Re: Tab auto-completion removes quotes from variables even when it shouldn't

2021-06-25 Thread Chet Ramey
of expanding variables in the directory name and the side effect of quoting them. 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: Latest push for command substitutions

2021-06-24 Thread Chet Ramey
this line to the history 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: Latest push for command substitutions

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

Re: 'wait' in command group in pipeline fails to recognize child process

2021-06-24 Thread Chet Ramey
On 6/23/21 6:17 PM, Martin Jambon wrote: On 6/23/21 6:24 AM, Chet Ramey wrote: On 6/22/21 9:54 PM, Martin Jambon wrote: In the posix definition, a subshell - is not necessarily implemented as a separate process - belongs to a unique shell - is not a shell Why is it not "a shell?"

Re: Word splitting for $@ in variable assignment

2021-06-24 Thread Chet Ramey
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: 'wait' in command group in pipeline fails to recognize child process

2021-06-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: 'wait' in command group in pipeline fails to recognize child process

2021-06-23 Thread Chet Ramey
bshell can be created. Agreed. -- ``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/

Latest push for command substitutions

2021-06-22 Thread Chet Ramey
. 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' in command group in pipeline fails to recognize child process

2021-06-22 Thread Chet Ramey
wait for a process that isn't one of your children. -- ``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: Allow `read` to recognize custom completions

2021-06-21 Thread Chet Ramey
consider it. It's low priority right now. -- ``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: When searching in command history, highlighting is missing the first character

2021-06-21 Thread Chet Ramey
ur terminal emulator displays the cursor. -- ``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: `&>' doesn't behave as expected in POSIX mode

2021-06-21 Thread Chet Ramey
tdout to `/dev/null'. You're right, and it's not worth changing at this point. It's come up before, and the bash interpretation is much more useful and compatible. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Rame

Re: !(.pattern) can match . and .. if dotglob is enabled

2021-06-19 Thread Chet Ramey
On 6/17/21 3:53 PM, Nora Platiel wrote: On 2021-06-15 10:19 Chet Ramey wrote: Or rather, to never generate . or .. as a pathname component via globbing. I don't think it's useful -- and it's certainly incompatible -- to make an explicit pattern like `.?' ignore `..'. I think it would

Re: !(.pattern) can match . and .. if dotglob is enabled

2021-06-19 Thread Chet Ramey
On 6/17/21 3:41 PM, Nora Platiel wrote: On 2021-06-15 09:43 Chet Ramey wrote: I can see how this would be more intuitive. Let's try it. I'll put support in the next devel branch push. Thanks! I'm leaning towards a general statement about how dotglob affects the set of filenames

Re: Segmentation fault from running fc on empty history list

2021-06-16 Thread Chet Ramey
On 6/15/21 3:50 PM, Sibo Dong wrote: Hello, Running the fc builtin on an empty history list results in a segmentation fault from bash. Thanks for the report. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet

Re: [PATCH] Prefer non-gender specific pronouns

2021-06-16 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: Prefer non-gender specific pronouns

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

Re: Prefer non-gender specific pronouns

2021-06-16 Thread Chet Ramey
this was originally sent via private email, but keep stuff like this off the list in the future, please. -- ``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: Memory leak detected by Valgrind

2021-06-15 Thread Chet Ramey
://lists.gnu.org/archive/html/bug-bash/2017-06/msg00052.html -- ``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: !(.pattern) can match . and .. if dotglob is enabled

2021-06-15 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: !(.pattern) can match . and .. if dotglob is enabled

2021-06-15 Thread Chet Ramey
ng towards a general statement about how dotglob affects the set of filenames that are tested against the extended patterns, rather than calling out `!' specially. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ram

Re: Memory leak detected by Valgrind

2021-06-15 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: non fatal configure error with higher version of gettext.m4

2021-06-11 Thread Chet Ramey
to do I'll have to figure out a different way to do 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: man page misstatement

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

Re: Prefer non-gender specific pronouns

2021-06-07 Thread Chet Ramey
keep them off this list. I'm on vacation; I'm not going to get involved in an extended discussion about this, just stop. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp

Re: Suggestion/question

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

Re: !(.pattern) can match . and .. if dotglob is enabled

2021-06-02 Thread Chet Ramey
want to take a shot at a sentence or two describing your desired behavior? It should not take more than that. However it works out, I'll have to write more special-case code to implement it. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' -

Re: !(.pattern) can match . and .. if dotglob is enabled

2021-05-27 Thread Chet Ramey
ent that an initial `.' be matched explicitly). Can you write a set of rules that encapsulates what you would like to see? Or can the group? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduh

Re: [patch #10070] toggle invert flag when reading `!'

2021-05-27 Thread Chet Ramey
the POSIX grammar as a base and documents deviations. -- ``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 #10070] toggle invert flag when reading `!'

2021-05-27 Thread Chet Ramey
On 5/27/21 11:20 AM, Andreas Schwab wrote: On Mai 27 2021, Chet Ramey wrote: On 5/26/21 9:55 PM, Dale R. Worley wrote: $ ! ! [ 1 -eq 1 ]; echo $? 0 That last one isn't defined by the manual page. I'm surprised you don't get a syntax error. It's clearly valid. According

Re: [patch #10070] toggle invert flag when reading `!'

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

Re: !(.pattern) can match . and .. if dotglob is enabled

2021-05-26 Thread Chet Ramey
s behavior that changed more than ten years ago. There was a relevant discussion back in January: https://lists.gnu.org/archive/html/bug-bash/2021-01/msg00240.html -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech,

Re: bash support for XDG Base Directory spec (~/.config/bash/)

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

Re: [patch #10070] toggle invert flag when reading `!'

2021-05-24 Thread Chet Ramey
agree that it's more intuitive to toggle 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: Some proposals concerning bash manual

2021-05-18 Thread Chet Ramey
for your suggestions. 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: Possible regression in 'wait' command

2021-05-16 Thread Chet Ramey
it myself. No need; I already fixed it. I've attached a patch. -- ``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/ *** ../bash-20210513/builtins/wait.def 2021

Re: Possible regression in 'wait' command

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

Latest devel branch push

2021-05-14 Thread Chet Ramey
arrays. 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: new bug introduced by 'devel' commit 35bc7025c1db5078eb157eea7c0436754ac91aa3

2021-05-13 Thread Chet Ramey
On 5/13/21 11:07 AM, Adjudicator Darren wrote: ‐‐‐ Original Message ‐‐‐ On Thursday, May 13, 2021 5:02 PM, Chet Ramey wrote: On 5/13/21 10:31 AM, Adjudicator Darren wrote: ‐‐‐ Original Message ‐‐‐ On Thursday, May 13, 2021 4:25 PM, Chet Ramey chet.ra...@case.edu wrote

Re: new bug introduced by 'devel' commit 35bc7025c1db5078eb157eea7c0436754ac91aa3

2021-05-13 Thread Chet Ramey
On 5/13/21 11:07 AM, Adjudicator Darren wrote: ‐‐‐ Original Message ‐‐‐ On Thursday, May 13, 2021 5:02 PM, Chet Ramey wrote: On 5/13/21 10:31 AM, Adjudicator Darren wrote: ‐‐‐ Original Message ‐‐‐ On Thursday, May 13, 2021 4:25 PM, Chet Ramey chet.ra...@case.edu wrote

Re: new bug introduced by 'devel' commit 35bc7025c1db5078eb157eea7c0436754ac91aa3

2021-05-13 Thread Chet Ramey
On 5/13/21 10:31 AM, Adjudicator Darren wrote: ‐‐‐ Original Message ‐‐‐ On Thursday, May 13, 2021 4:25 PM, Chet Ramey wrote: On 5/13/21 9:11 AM, Adjudicator Darren wrote: What's the bug? this: It's a work in progress. I would use the master branch but apparently

Re: new bug introduced by 'devel' commit 35bc7025c1db5078eb157eea7c0436754ac91aa3

2021-05-13 Thread Chet Ramey
On 5/13/21 9:11 AM, Adjudicator Darren wrote: What's the bug? this: It's a work in progress. -- ``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: set -x path always returns 1 on fedora34 on arm64

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

Re: Changing the way bash expands associative array subscripts

2021-05-11 Thread Chet Ramey
On 3/15/21 8:12 PM, Chet Ramey wrote: I'm kicking around a change to associative array subscript expansion that would basically force the equivalent of `assoc_expand_once' on all the time, with additional changes to prevent unwanted double expansion in an arithmetic expression context

Re: Question about case statement in Bash docs

2021-05-10 Thread Chet Ramey
On 5/10/21 10:40 AM, Andreas Schwab wrote: On Mai 10 2021, Chet Ramey wrote: Either way, quote removal happens, the double quotes are removed, and the characters between the double quotes are treated specially. POSIX doesn't mention quote removal either. Is that a bug

Re: Question about case statement in Bash docs

2021-05-10 Thread Chet Ramey
val happens, the double quotes are removed, and the characters between the double quotes are treated specially. -- ``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: Question about case statement in Bash docs

2021-05-10 Thread Chet Ramey
, and arithmetic expansion. But if it’s true why the following code outputs Y? You're right; case patterns undergo quote removal. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.edu

Re: Why does "mapfile -d delim" (delim != '\n') use unbuffered read?

2021-05-09 Thread Chet Ramey
after the entire array is loaded. `mapfile' came as part of contributions associated with the bash debugger. Maybe take a look there to see how it uses -C? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech

Re: Why does "mapfile -d delim" (delim != '\n') use unbuffered read?

2021-05-07 Thread Chet Ramey
reports about that behavior, I conclude that this change is not going to make much of a difference. -- ``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: Why does "mapfile -d delim" (delim != '\n') use unbuffered read?

2021-05-04 Thread Chet Ramey
his change. Changing entrenched behavior is always a tricky business. We'll see how it goes. -- ``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: Why does "mapfile -d delim" (delim != '\n') use unbuffered read?

2021-05-04 Thread Chet Ramey
On 5/4/21 4:05 PM, Robert Elz wrote: Date:Tue, 4 May 2021 09:28:04 -0400 From:Chet Ramey Message-ID: | The issue with the BSDs and terminal devices is that the current code | only checks for -1/ESPIPE, but they return a different value for errno

Bash-5.1 Official patch 7

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

Bash-5.1 Official patch 8

2021-05-04 Thread Chet Ramey
to find the patch level (for the sccs version string). */ ! #define PATCHLEVEL 8 #endif /* _PATCHLEVEL_H_ */ -- ``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/

Bash-5.1 Official patch 6

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

Bash-5.1 Official patch 5

2021-05-04 Thread Chet Ramey
ne PATCHLEVEL 5 #endif /* _PATCHLEVEL_H_ */ -- ``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: Why does "mapfile -d delim" (delim != '\n') use unbuffered read?

2021-05-04 Thread Chet Ramey
not to buffer input if lseek fails for any reason. -- ``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: Why does "mapfile -d delim" (delim != '\n') use unbuffered read?

2021-05-04 Thread Chet Ramey
On 5/4/21 3:26 AM, Andreas Schwab wrote: On Mai 03 2021, Chet Ramey wrote: It won't work on any system that doesn't return -1/ESPIPE when you try to lseek on a terminal device. Glibc does; Glibc doesn't do anything, it just uses what the kernel says. You'd think, but the manual says

Re: Why does "mapfile -d delim" (delim != '\n') use unbuffered read?

2021-05-03 Thread Chet Ramey
On 5/3/21 10:14 AM, Chet Ramey wrote: This treatment of `mapfile' for "delim != '\n'" exists since the mapfile delimiter is first introduced by commit 25a0eacfe "commit bash-20140625 snapshot". Would it be a problem to change to the buffered read also for non-LF delimiters

Re: Why does "mapfile -d delim" (delim != '\n') use unbuffered read?

2021-05-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: Memory leak in function with local array

2021-05-03 Thread Chet Ramey
.html. -- ``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 extended glob - Negation

2021-04-30 Thread Chet Ramey
character. -- ``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: RFE - support option for curses idea of term [tab]size.

2021-04-30 Thread Chet Ramey
On 4/29/21 10:39 PM, L A Walsh wrote: On 2021/04/26 17:16, Chet Ramey wrote: On 4/26/21 7:19 PM, L A Walsh wrote: I'm not clear if termcap lib has this or not, when the curses library is in use, it supports the idea of reading and setting the term [tab]size. Can't you do this with `stty

Re: Brace expansion ordering vs. parameter expansion

2021-04-29 Thread Chet Ramey
brace expansion entirely, instead of relying on the degenerate brace expansion to be left unchanged, so it's safer in general. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp

Re: Brace expansion ordering vs. parameter expansion

2021-04-29 Thread Chet Ramey
s. And here we are, thirty-plus years later. -- ``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: Problem with sequences with variables?

2021-04-28 Thread Chet Ramey
? It would be MUCH more useful if it were. Maybe, but it's never worked that way and was never intended to. You can get what you need using eval: eval echo \{1..${i}} -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey

Re: Tab completion doesn't escape spaces when globbing while using autocd

2021-04-28 Thread Chet Ramey
looks like this has been around since early 2008. The fix is to tell readline we're doing filename completion when the command word being completed contains a glob pattern. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates

Re: RFE - support option for curses idea of term size.

2021-04-26 Thread Chet Ramey
'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

Re: [PATCH] Skip initial expansion of valid array reference tokens in unset

2021-04-25 Thread Chet Ramey
with expansion in references. Thanks. I can use some of 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: How to use bash loadables in a portable manner?

2021-04-25 Thread Chet Ramey
a default value for BASH_LOADABLES_DIR in one or more startup 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: tab compl doesnt complete ./some'thing filename at all

2021-04-24 Thread Chet Ramey
On 4/23/21 5:02 PM, Alex fxmbsw7 Ratchev wrote: mkdir ttt ; cd ttt printf 'printf success' >some\'thing chmod +x * ./tabtab == nothing Thanks for the report. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates C

Re: [PATCH] Free unfreed string in assign_assoc_from_kvlist()

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

Re: Bash Builtin Read Function Hang

2021-04-19 Thread Chet Ramey
ing FIFOs when the writing process exits, but I can't reproduce it on macOS or a couple different Linux versions. 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] Free unfreed string in assign_assoc_from_kvlist()

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

Re: enhancement merge request

2021-04-19 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: Document variable names need to be all ASCII

2021-04-19 Thread Chet Ramey
or an under- score. Also referred to as an identifier. -- ``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: enhancement merge request

2021-04-18 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/

  1   2   3   4   5   6   7   8   9   10   >