Re: The 'source x' command doesn't keep variables set by x when source output is piped into other command

2024-11-16 Thread Chet Ramey
On 11/16/24 3:36 AM, Martin D Kealey wrote: (Insert this between the "Copyright" and "Description" sections) I don't think a disclaimer saying "this manual is not what it does not claim to be" is particularly useful. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: bug-bash Digest, Vol 264, Issue 31

2024-11-16 Thread Wiley Young
set="utf-8" > > At 2024-11-16T18:52:12-0800, Wiley Young wrote: > > | From: Martin D Kealey > > > > | "In the general case I agree; man > > > > | pages should be reference > > > > | manuals, not tutorials" > > > > We

Re: bug-bash Digest, Vol 264, Issue 28

2024-11-16 Thread Oğuz
On Sunday, November 17, 2024, G. Branden Robinson < g.branden.robin...@gmail.com> wrote: > > recondite > That's a recondite word, isn't it Sunday where you live? -- Oğuz

Re: fg via keybind modifies tty settings

2024-11-16 Thread #!microsuxx
ah and to save and have it copy it into .bash_profile or .profile On Sat, Nov 16, 2024, 9:15 PM #!microsuxx wrote: > so , this is using the logic that vim returns a specific code 148 on > control-z > checking $? for it is what i did , for your request .. > > that thats a bit more clear , we can

Re: bug-bash Digest, Vol 264, Issue 28

2024-11-16 Thread Wiley Young
| From: Martin D Kealey | "In the general case I agree; man | pages should be reference | manuals, not tutorials" We should value others' contributions. Most people, when they read something that they don't yet understand, if they wish to understand it, will seek out a more accessible

Re: redirection / process substitution fails to read a file descriptor

2024-11-16 Thread Greg Wooledge
On Sat, Nov 16, 2024 at 16:35:05 -0600, Mike Peters wrote: > Description: > Process substitution does not generate properly when pulling from > another file descriptor, although it works when pulling from a file directly. > In the below sample shell session, it is expected that `<( be fun

Re: bug-bash Digest, Vol 264, Issue 28

2024-11-16 Thread G. Branden Robinson
At 2024-11-16T18:52:12-0800, Wiley Young wrote: > | From: Martin D Kealey > > | "In the general case I agree; man > > | pages should be reference > > | manuals, not tutorials" > > We should value others' contributions. This statement implies that we lack a means of evaluating contribut

redirection / process substitution fails to read a file descriptor

2024-11-16 Thread Mike Peters
Configuration Information [Automatically generated, do not change]: Machine: aarch64 OS: darwin23.4.0 Compiler: clang Compilation CFLAGS: -DSSH_SOURCE_BASHRC -DDEFAULT_LOADABLE_BUILTINS_PATH='/opt/homebrew/Cellar/bash/5.2.37/lib/bash:/usr/loc$ uname output: Darwin Mikes-Mac-Mini.local 23.3.0 Da

Re: redirection / process substitution fails to read a file descriptor

2024-11-16 Thread Lawrence Velázquez
On Sat, Nov 16, 2024, at 9:35 PM, Greg Wooledge wrote: > On Sat, Nov 16, 2024 at 16:35:05 -0600, Mike Peters wrote: >> Description: >> Process substitution does not generate properly when pulling from >> another file descriptor, although it works when pulling from a file >> directly. In t

Re: fg via keybind modifies tty settings

2024-11-16 Thread David Moberg
That looks very complicated, how do interpret that? And where/when to run it? Den lör 16 nov. 2024 16:48#!microsuxx skrev: > trap ' t=$? ; [[ $BASH_COMMAND != *'$'bashcmd* ]] && bashcmd=$BASH_COMMAND > ' debug ; PROMPT_COMMAND=' [[ $t == 148 && $bashcmd == vim* ]] && echo ye > && stty sane ' > >

Re: fg via keybind modifies tty settings

2024-11-16 Thread #!microsuxx
so , this is using the logic that vim returns a specific code 148 on control-z checking $? for it is what i did , for your request .. that thats a bit more clear , we can go on with testing copypaste the first small code in a terminal and proceed with vim c-z testing the second longer is only fo

Re: The 'source x' command doesn't keep variables set by x when source output is piped into other command

2024-11-16 Thread Oğuz
On Saturday, November 16, 2024, Martin D Kealey wrote: > (Insert this between the "Copyright" and "Description" sections) > > > *“PrefaceDear reader, if this is your introduction to the Shell programming > language, please be aware that although it may look like other languages > you are familiar

Re: fg via keybind modifies tty settings

2024-11-16 Thread #!microsuxx
PROMPT_COMMAND=' [[ $? == 148 ]] && stty sane ' On Sat, Nov 16, 2024, 11:29 AM David Moberg wrote: > Ok, is there anything I can do on my user side to get desired behavior? > (similar to running `stty sane` every time I send vim to the background.) > > Den tis 12 nov. 2024 16:49Chet Ramey skrev

Re: fg via keybind modifies tty settings

2024-11-16 Thread #!microsuxx
trap ' t=$? ; [[ $BASH_COMMAND != *'$'bashcmd* ]] && bashcmd=$BASH_COMMAND ' debug ; PROMPT_COMMAND=' [[ $t == 148 && $bashcmd == vim* ]] && echo ye && stty sane ' On Sat, Nov 16, 2024, 4:40 PM #!microsuxx wrote: > PROMPT_COMMAND=' [[ $? == 148 ]] && stty sane ' > > On Sat, Nov 16, 2024, 11:29 A

Re: The 'source x' command doesn't keep variables set by x when source output is piped into other command

2024-11-16 Thread Martin D Kealey
On Sat, 16 Nov 2024 at 15:01, Robert Elz wrote: > Date:Sat, 16 Nov 2024 14:05:17 +1000 > From:Martin D Kealey > Message-ID: d1_ebrgbusb2u1sxhyloqq...@mail.gmail.com> > > | I know, but "explicitly" is not the same as "highlighted", let alone > "well > | enough".

Re: fg via keybind modifies tty settings

2024-11-16 Thread David Moberg
Ok, is there anything I can do on my user side to get desired behavior? (similar to running `stty sane` every time I send vim to the background.) Den tis 12 nov. 2024 16:49Chet Ramey skrev: > On 11/10/24 7:14 PM, Martin D Kealey wrote: > > > Perhaps what's really needed is to make sure that "ord