You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
short option name for read --shell conflicts with planned --silent #2166
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.
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.
Activity
zanchey commentedon Jul 3, 2015
Why did I think
--shellwasn't released yet? It's been in fish for forever.cben commentedon Feb 12, 2016
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-cmdor--prompt-command. Then there could also be a separate-p,--promptwhich takes a string (I dare say--prompt-cmdbehavior is esoteric enough to not deserve a short form).The thing with bash's
readis that it has only short options. If bash hadcmd --some-optand fish hadcmd --another-opt, that's great; when both havecmd -obut behave differently, that's confusing.Pysis868 commentedon Jun 16, 2017
GitHub - fish-shell/fish-shell - fish 2.6.0 (released June 3, 2017):