[Top][All Lists]

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

Re: Bug in basename builtin

From: Eric Blake
Subject: Re: Bug in basename builtin
Date: Wed, 18 Mar 2020 08:08:07 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0

On 3/18/20 3:49 AM, Stefan Krusche wrote:
Am Mittwoch, 18. März 2020 schrieb Peng Yu:

$ type basename
basename is a shell builtin
$ basename -- # kill the terminal.

The above command kill the terminal. Is there a bug?

Yes. But without details on your bash version, it's hard to say if it is a known bug (that may have since been fixed in later bash). In the devel branch of bash.git, I see examples/loadables/basename.c, but that does not seem to be built by default. It could very well be a bug in that file - but you should tell us for sure that you are using it.

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)

bash 4.4 did not ship with a basename builtin.

$ basename --
basename: missing operand
Try 'basename --help' for more information.

That output corresponds to GNU coreutils, which is not testing the same program.

Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization: |

reply via email to

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