Skip to content

short option name for read --shell conflicts with planned --silent #2166

Closed

Description

@zanchey

Apropos of #838, I think the short name for read --shell to should be something that isn't -s, and I think this change should be made before 2.2.0 to avoid backward-incompatible change in the future. read -s is a reasonably common construct from other shells and a conflict is not helpful to migrants.

How about read -S?

Activity

  1. added this to the fish 2.2.0 milestone on Jul 3, 2015
  2. removed this from the fish 2.2.0 milestone on Jul 3, 2015
  3. zanchey commented on Jul 3, 2015

    @zanchey
    MemberAuthor

    Why did I think --shell wasn't released yet? It's been in fish for forever.

  4. cben commented on Feb 12, 2016

    @cben
    Contributor

    I presume this is closed because we can't break backward compatibility?

    For the record, another read option that'd be nice if it were bash-compatible is -p.
    It's named exactly the same, but unlike bash where it takes a string, in fish it executes it as a command.
    It's also confusing the long form is called --prompt; it should have been --prompt-cmd or --prompt-command. Then there could also be a separate -p, --prompt which takes a string (I dare say --prompt-cmd behavior is esoteric enough to not deserve a short form).

    The thing with bash's read is that it has only short options. If bash had cmd --some-opt and fish had cmd --another-opt, that's great; when both have cmd -o but behave differently, that's confusing.

  5. Pysis868 commented on Jun 16, 2017

    @Pysis868

    GitHub - fish-shell/fish-shell - fish 2.6.0 (released June 3, 2017):

  6. locked as resolved and limited conversation to collaborators on Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions