Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15012 > unrolled thread

Re: bug in dirname loadable?

Started byPeng Yu <pengyu.ut@gmail.com>
First post2018-12-30 17:42 -0600
Last post2018-12-30 17:42 -0600
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: bug in dirname loadable? Peng Yu <pengyu.ut@gmail.com> - 2018-12-30 17:42 -0600

#15012 — Re: bug in dirname loadable?

FromPeng Yu <pengyu.ut@gmail.com>
Date2018-12-30 17:42 -0600
SubjectRe: bug in dirname loadable?
Message-ID<mailman.6596.1546213385.1284.bug-bash@gnu.org>
On Wed, Dec 26, 2018 at 11:35 AM Chet Ramey <chet.ramey@case.edu> wrote:
>
> On 12/24/18 10:35 PM, Peng Yu wrote:
> > dirname loadable gives the following error. I think the coreutils'
> > direname's convention is better. Should it be considered as a bug to
> > fix?
> >
> > $ dirname -- -a
> > dirname: usage: dirname string
> > $(type -P dirname) -- -a
> > .
>
> Yes, dirname should skip over a `--' denoting the end of options. Thanks
> for the report.

There is a similar problem in `basename`. Is it due to a common bug on
how loadables are programmed?

$ builtin basename -a
-bash: basename: -a: invalid option
basename: usage: basename string [suffix]
$ builtin basename -- -a
--

-- 
Regards,
Peng

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web