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 Something that's not working as intended
Milestone

Comments

@BebeSparkelSparkel
Copy link

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 Something that's not working as intended label Feb 14, 2019
@mqudsi mqudsi closed this as completed in 553bf47 Feb 14, 2019
@mqudsi
Copy link
Contributor

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 modified the milestones: fish-future, fish 3.1.0 Feb 14, 2019
@faho faho mentioned this issue Mar 27, 2019
@faho faho modified the milestones: fish 3.1.0, fish 3.0.3 Apr 6, 2019
@zanchey zanchey modified the milestones: fish 3.0.3, fish 3.1.0 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 Something that's not working as intended
Projects
None yet
Development

No branches or pull requests

4 participants