8000 printf -a results in `printf: -a: unknown option` · Issue #9132 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

printf -a results in printf: -a: unknown option #9132

@Aiz0

Description

@Aiz0

sys info:
fish, version 3.5.1
Linux 5.18.16-arch1-1
Terminal: foot

Tested with sh -c 'env HOME=$(mktemp -d) fish' and by prepending them by builtin

executing printf -a results in the following error

printf: -a: unknown option

(Type 'help printf' for related documentation)

From the fish documentation about printf
It doesn’t support any options, so there is no need for a -- separator, which makes it easier to use for arbitrary input than echo

executing printf -- -a works

typing printf -- and pressing tab fish suggest --help and --version as options

executing printf --help results in the man page for printf being brought up.

printf --version does not work (unknown option)

I would expect printf to not take any options and print -a without issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0