Package: posh
Version: 0.13.2

Please see the previous issue for more discussion.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911264

I am opening a new issue because of the new release where issues still
persist.

The problem is that when using 'unset -f' to unset a function that has
been set it will make any commands that share the function's name
inaccessible instead.

The earlier fix works only if the function has not been set.

https://salsa.debian.org/clint/posh/commit/352c0b90a33ff6e398eb843e45665d37c36e18d1

I have attached a small test case to this e-mail which demonstrates the
issue where after 'unset -f echo' it will fail with:

  9: echo: can't find function definition file

The example works correctly with any other compatible shell.

Attachment: posh_unset2.sh
Description: application/shellscript

Reply via email to