Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"read -S" Unknown option #5660

Closed
BebeSparkelSparkel opened this issue Feb 14, 2019 · 1 comment
Closed

"read -S" Unknown option #5660

BebeSparkelSparkel opened this issue Feb 14, 2019 · 1 comment
Labels
bug
Milestone

Comments

@BebeSparkelSparkel
Copy link

@BebeSparkelSparkel BebeSparkelSparkel commented Feb 14, 2019

Looking at the read doc read -S is supposed to be the same as --shell. However for me, read --shell works but -s does not. This does seem to be a regression.

-S or --shell enables syntax highlighting, tab completions and command termination suitable for entering shellscript code in the interactive mode. NOTE: Prior to fish 3.0, the short opt for --shell was -s, but it has been changed for compatibility with bash's -s short opt for --silent.

> uname -a
Darwin MacBook-Air-3.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 21 20:07:40 PDT 2018; root:xnu-3248.73.11~1/RELEASE_X86_64 x86_64
> fish -v
fish, version 3.0.1
> read --shell PRB_BUG
read>
> read -S PRB_BUG
read: Unknown option '-S'

       read - read line of input into variables

   Synopsis
       read [OPTIONS] [VARIABLE ...]

read: Type 'help read' for related documentation
@zanchey zanchey added this to the fish-future milestone Feb 14, 2019
@zanchey zanchey added the bug label Feb 14, 2019
@mqudsi
Copy link
Contributor

@mqudsi mqudsi commented Feb 14, 2019

I think that was me. I was bit by the duplication of values for the two separate getopts arrays.

@mqudsi mqudsi removed this from the fish-future milestone Feb 14, 2019
@mqudsi mqudsi added this to the fish 3.1.0 milestone Feb 14, 2019
@faho faho mentioned this issue Mar 27, 2019
@faho faho removed this from the fish 3.1.0 milestone Apr 6, 2019
@faho faho added this to the fish 3.0.3 milestone Apr 6, 2019
@zanchey zanchey removed this from the fish 3.0.3 milestone Aug 14, 2019
@zanchey zanchey added this to the fish 3.1.0 milestone Aug 14, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug
Projects
None yet
Development

No branches or pull requests

4 participants