Re: problem anomalies , possibly aliases related

2023-07-20 Thread alex xmb ratchev
sorry for possible negative effected texting i d wish to discuss , why aliases are a big gain , and why so my indenting i ve been in #bash and #awk since 200[012] , where such negative english texting like me getting banned there for years , .. i did learn back then , and did , and do answer bash

Re: problem anomalies , possibly aliases related

2023-07-20 Thread Grisha Levit
On Thu, Jul 20, 2023, 01:42 alex xmb ratchev wrote: > > > 2. it says [[ ! -d then ' continue ' .. where is cp > i call no , not c , ... > 1. cp missing > 2. the [[ ! -d return to continue looks bug wrong > Try putting the code that uses the alias into a function, and then print the function defi

Re: problem anomalies , possibly aliases related

2023-07-20 Thread alex xmb ratchev
On Thu, Jul 20, 2023, 10:03 AM Grisha Levit wrote: > > > On Thu, Jul 20, 2023, 01:42 alex xmb ratchev wrote: > >> >> >> 2. it says [[ ! -d then ' continue ' .. where is cp >> i call no , not c , ... >> 1. cp missing >> 2. the [[ ! -d return to continue looks bug wrong >> > > Try putting the code

Re: problem anomalies , possibly aliases related

2023-07-20 Thread alex xmb ratchev
the bugfixed version that ran 24m long On Thu, Jul 20, 2023, 10:08 AM alex xmb ratchev wrote: > > > On Thu, Jul 20, 2023, 10:03 AM Grisha Levit wrote: > >> >> >> On Thu, Jul 20, 2023, 01:42 alex xmb ratchev wrote: >> >>> >>> >>> 2. it says [[ ! -d then ' continue ' .. where is cp >>> i call no

Re: problem anomalies , possibly aliases related

2023-07-20 Thread Martin D Kealey
On Thu, 20 Jul 2023, 18:03 Grisha Levit, wrote: > Sounds like you want all the commands in the alias to be executed as a > group -- so you can just write it as one: > > alias bad='{ echo fail; continue; }' > That right there USED to work as a function: bad() { echo fail; continue; } But then

Re: problem anomalies , possibly aliases related

2023-07-20 Thread Greg Wooledge
On Thu, Jul 20, 2023 at 11:03:35PM +1000, Martin D Kealey wrote: > On Thu, 20 Jul 2023, 18:03 Grisha Levit, wrote: > > > Sounds like you want all the commands in the alias to be executed as a > > group -- so you can just write it as one: > > > > alias bad='{ echo fail; continue; }' > > > > That

Re: problem anomalies , possibly aliases related

2023-07-20 Thread Martin D Kealey
On Thu, 20 Jul 2023, 23:28 Greg Wooledge, wrote: > The idea that this would "work" is quite surprising to me. Shell functions are SO unlike functions in other languages that it surprises me that anyone would assume any particular parallel holds. Everything about them is dynamic: where they fin

Re: [PATCH] normalization tweaks for macOS

2023-07-20 Thread Chet Ramey
On 7/18/23 1:39 PM, Grisha Levit wrote: On Tue, Jul 18, 2023 at 9:55 AM Chet Ramey wrote: Unicode normalization on macOS has always been a pain in the ass. I can see that! This is the basic assumption that drives all the decisions: character input you get from the terminal is in NFC, and fi

Re: problem anomalies , possibly aliases related

2023-07-20 Thread alex xmb ratchev
i most dont understand your text story On Thu, Jul 20, 2023, 3:03 PM Martin D Kealey wrote: > > > On Thu, 20 Jul 2023, 18:03 Grisha Levit, wrote: > >> Sounds like you want all the commands in the alias to be executed as a >> group -- so you can just write it as one: >> >> alias bad='{ echo fail

Re: [PATCH] normalization tweaks for macOS

2023-07-20 Thread alex xmb ratchev
On Thu, Jul 20, 2023, 5:55 PM Chet Ramey wrote: > On 7/18/23 1:39 PM, Grisha Levit wrote: > > On Tue, Jul 18, 2023 at 9:55 AM Chet Ramey wrote: > >> Unicode normalization on macOS has always been a pain in the ass. > > > > I can see that! > > > >> This is the basic assumption that drives all the

git amend commit with backticks on cli causes tty to crash

2023-07-20 Thread Wiley Young
Hi, I'm seeing this behavior on Fedora 38. Possibly it's just some user error again, since i'm figuring out how to use vim and git at a slightly above novice level. :-) #+++ $ uname -a Linux localhost-live 6.3.7-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jun 9 15:21:11 U

Re: problem anomalies , possibly aliases related

2023-07-20 Thread Greg Wooledge
On Fri, Jul 21, 2023 at 12:33:07AM +1000, Martin D Kealey wrote: > C has longjmp, and other languages have exceptions. Non-local break is a > usable "Bash shaped" analogue of those. Not perfect, sure, but close enough > to be useful. (Non-local continue is a logical extension of that.) > > Saying

Re: [PATCH] normalization tweaks for macOS

2023-07-20 Thread Grisha Levit
On Thu, Jul 20, 2023 at 11:54 AM Chet Ramey wrote: > So I'll go ahead with your patch, starting with the globbing changes. Thanks! BTW, changing quote_string_for_globbing to skip escaping characters that don't need it makes globbing >2x faster in the case that most of the pattern is a quoted stri