On Wed, Mar 18, 2020 at 09:49:06AM +0100, Stefan Krusche wrote:
> Am Mittwoch, 18. März 2020 schrieb Peng Yu:
> > Hi,
> >
> > $ type basename
> > basename is a shell builtin
> > $ basename -- # kill the terminal.
> >
> > The above command kill the terminal. Is there a bug?
>
> Hallo Peng,
>
> this does not happen on my system, Devuan ascii with:
> $ bash --version
> GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)
>
> $ basename --
> basename: missing operand
> Try 'basename --help' for more information.
That's the GNU coreutils version of basename. Peng Yu is apparently
using a loadable builtin.