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

Question: multi-line command substitution in script vs interactive #6316

Closed
PatrickF1 opened this issue Nov 12, 2019 · 3 comments
Closed

Question: multi-line command substitution in script vs interactive #6316

PatrickF1 opened this issue Nov 12, 2019 · 3 comments
Labels
bug
Milestone

Comments

@PatrickF1
Copy link

@PatrickF1 PatrickF1 commented Nov 12, 2019

In one of my own fish scripts, I have a line that looks like

set variable (
        command1 |
        command2 |
        command3
)

So I was really surprised that when I tried to type it out in the interactive shell that this was printed

 ~  set variable (                                                                                                   
fish: Unexpected end of string, expecting ')'
set variable (

Is it expected that in the interactive shell you can't do multi-line command substitution?

@faho
Copy link
Member

@faho faho commented Nov 12, 2019

No, it's not expected, the editor is overzealous here.

@faho faho added the bug label Nov 12, 2019
@faho faho added this to the fish-future milestone Nov 12, 2019
@PatrickF1
Copy link
Author

@PatrickF1 PatrickF1 commented Nov 12, 2019

Woohoo found another bug! Thanks for all your work on the fish shell faho!

@ridiculousfish
Copy link
Member

@ridiculousfish ridiculousfish commented Nov 14, 2019

Seems reasonable. Fixed as e18fd3c. Thanks for filing!

@ridiculousfish ridiculousfish removed this from the fish-future milestone Nov 14, 2019
@ridiculousfish ridiculousfish added this to the fish 3.1.0 milestone Nov 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

3 participants