Re: problem anomalies , possibly aliases related

2023-07-21 Thread Phi Debian
On Thu, Jul 20, 2023 at 3:28 PM Greg Wooledge wrote: > > The idea that this would "work" is quite surprising to me. The basic > idea of a function is that it does stuff and then returns you to the > point where you were when the function was called. > > Really ? > In other languages, would

[Documentation] Parameter expansion: missing colon in example

2023-07-21 Thread private--- via Bug reports for the GNU Bourne Again SHell
Hello, The example on parameter expansion[1] should perhaps read : $ echo ${v:-unset} instead of : $ echo ${v-unset} Yes ? More context: ---8<--- ${parameter:-word} If parameter is unset or null, the expansion of word is substituted. Otherwise, the value of parameter is substituted. $

Re: git amend commit with backticks on cli causes tty to crash

2023-07-21 Thread Eduardo Bustamante
On Fri, Jul 21, 2023 at 9:14 AM Dale R. Worley wrote: > (...) > Also, you don't state explicitly what you think the error is. I assume > you mean that "Press [ctrl-d] again and tab (tty 5) crashes." should not > be happening. > > But it looks to me like you're sending ctrl-d into a shell. That,

Re: git amend commit with backticks on cli causes tty to crash

2023-07-21 Thread Dale R. Worley
Wiley Young writes: > 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. :-) Well, I think I can get an idea of what you're doing. I'm not sure, you really want to create a

Re: problem anomalies , possibly aliases related

2023-07-21 Thread Martin D Kealey
On Fri, 21 Jul 2023, 04:09 Greg Wooledge, wrote: > On Fri, Jul 21, 2023 at 12:33:07AM +1000, Martin D Kealey wrote: > > Saying that this *ought* to be done using aliases is not reasonable, as > it > > means forgoing the other stuff that functions can do, like taking > > parameters, declaring

Re: problem anomalies , possibly aliases related

2023-07-21 Thread alex xmb ratchev
On Fri, Jul 21, 2023, 1:36 PM Greg Wooledge wrote: > On Fri, Jul 21, 2023 at 01:15:16PM +0200, alex xmb ratchev wrote: > > On Thu, Jul 20, 2023, 8:09 PM Greg Wooledge wrote: > > > On Fri, Jul 21, 2023 at 12:33:07AM +1000, Martin D Kealey wrote: > [...] > > > Well in any case, the behavior you

Re: problem anomalies , possibly aliases related

2023-07-21 Thread Greg Wooledge
On Fri, Jul 21, 2023 at 01:15:16PM +0200, alex xmb ratchev wrote: > On Thu, Jul 20, 2023, 8:09 PM Greg Wooledge wrote: > > On Fri, Jul 21, 2023 at 12:33:07AM +1000, Martin D Kealey wrote: [...] > > Well in any case, the behavior you wanted is not reliable across shells, > > nor even across

Re: problem anomalies , possibly aliases related

2023-07-21 Thread alex xmb ratchev
On Thu, Jul 20, 2023, 8:09 PM Greg Wooledge wrote: > 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.