On Wed, Jun 18, 2025 at 9:31 AM Alberto Millán <hamb...@gmail.com> wrote:

> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS: -g -O2
> uname output: Linux ALBERTO 6.6.87.2-microsoft-standard-WSL2 #1 SMP
> PREEMPT_DYNAMIC Thu Jun  5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
> Machine Type: x86_64-pc-linux-gnu
>
> Bash Version: 5.2
> Patch Level: 37
> Release Status: release
>
> Description:
>     When I define an alias and a function with the same name, I experience
> abnormal behavior.
>     It seems to be especially dangerous when using a colon


You have implemented a recursive function with no terminating condition.
Thus the function will call itself, until the process runs out of memory
and crashes with a segmentation fault.

This is not a bug in bash though.

Reply via email to