bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segmentation Fault in bash --posix


From: Greg Wooledge
Subject: Re: Segmentation Fault in bash --posix
Date: Fri, 20 Jan 2023 18:41:28 -0500

On Fri, Jan 20, 2023 at 11:50:52PM +0100, Martin Schulte wrote:
> Hello Nicolas!
> 
> >     bash-5.1$ echo () { echo test }
> >     > echo test
> >     > }
> >     bash-5.1$ echo

> Most probably you want to insert a ; before the first closing }:
> 
> echo() { echo test ; }
> 
> But even now bash will crash.

It's not clear what the original intent was, but...

unicorn:~$ echo() { command echo test; }
unicorn:~$ echo hello world
test

Perhaps that's what the OP was trying to do.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]