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 you
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.
$ v=1
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,
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 "minima
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 loca
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 wa
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 version
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. (N