Re: Potential Bash Script Vulnerability

2024-04-07 Thread John Passaro
if you wanted this for your script - read all then start semantics, as opposed to read-as-you-execute - would it work to rewrite yourself inside a function? function main() { ... } ; main On Sun, Apr 7, 2024, 22:58 Robert Elz wrote: > Date:Mon, 8 Apr 2024 02:50:29 +0100 > From:

Re: Light weight support for JSON

2022-08-28 Thread John Passaro
interfacing with an external tool absolutely seems like the correct answer to me. a fact worth mentioning to back that up is that `jq` exists. billed as a sed/awk for json, it fills all the functions you'd expect such an external tool to have and many many more. interfacing from curl to jq to bash

Re: Prefer non-gender specific pronouns

2021-06-06 Thread John Passaro
Léa, I see that in the section Ilkka quoted you were using it in the plural. However Ilkka is exactly right; despite "they" being technically plural, using it for somebody of undetermined gender has been in the mainstream since long before inclusive language. "Someone left *their* book, there's no

Re: Prefer non-gender specific pronouns

2021-06-05 Thread John Passaro
I can see a couple reasons why it would be a good thing, and in the con column only "I personally don't have time to go through the manual and make these changes". but I'd happily upvote a patch from somebody that does. On Sat, Jun 5, 2021, 09:24 Vipul Kumar wrote: > Hi, > > Isn't it a good ide

Re: local failure

2020-05-31 Thread John Passaro
I think the underlying question here is not exactly "how do I gather this from the docs" as much as it is "how was I supposed to know about this and act on it before I had to debug it?" The bash manual is always "adequate" in the sense that almost any question can be answered by carefully consultin

[PATCH] builtin_read: count null character toward -n/-N limit

2019-02-04 Thread John Passaro
When the read builtin is invoked with -n/-N , the documentation specifies that at most characters will be read from stdin. This statement is not true when stdin emits null characters: read discards the null character and keeps reading without incrementing its counter, continuing until it has consu

read -N 1

2019-02-04 Thread John Passaro
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: darwin17.5.0 Compiler: clang Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='darwin17.5.0' -DCONF_MACHTYPE='x86_64-apple-darwin17.5.0' -DCONF_VENDOR='apple' -DLOCALEDIR='/usr/loca

Verbose error output in interactive mode

2016-08-05 Thread John Passaro
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: darwin15.0.0 Compiler: clang Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='darwin15.0.0' -DCONF_MACHTYPE='x86_64-apple-darwin15.0.0' -DCONF_VENDOR='apple' -DLOCALEDIR='/usr/local/