bug#50691: pwd: options with "--" (multiple dashes) return bad option

2021-09-19 Thread Paul Eggert

On 9/19/21 6:22 PM, william wrote:

Do you know why command is necessary for it to recognize the option?


Without 'command', you're using the builtin shell command rather than 
coreutils pwd.


Closing the bug report, as this isn't a coreutils bug.





bug#50691: pwd: options with "--" (multiple dashes) return bad option

2021-09-19 Thread william
That does the trick. Do you know why command is necessary for it to recognize 
the option?

On 21/09/19 06:05PM, L A Walsh wrote:
> Try 'command pwd --version'
> 
> On 2021/09/19 16:09, william wrote:
> > coreutils version 8.32
> > 
> > The commands
> > 
> > pwd --version
> > 
> > and
> > 
> > pwd --help
> > 
> > return
> > 
> > pwd: bad option: -v
> > pwd: bad option: -h
> > 
> > 
> > 





bug#50691: pwd: options with "--" (multiple dashes) return bad option

2021-09-19 Thread L A Walsh

Try 'command pwd --version'

On 2021/09/19 16:09, william wrote:

coreutils version 8.32

The commands

pwd --version

and

pwd --help

return

pwd: bad option: -v
pwd: bad option: -h









bug#50691: pwd: options with "--" (multiple dashes) return bad option

2021-09-19 Thread william
coreutils version 8.32

The commands

pwd --version

and

pwd --help

return

pwd: bad option: -v
pwd: bad option: -h