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

Comments

@PatrickF1
Copy link

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 commented Nov 12, 2019

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

@faho faho added the bug Something that's not working as intended label Nov 12, 2019
@faho faho added this to the fish-future milestone Nov 12, 2019
@PatrickF1
Copy link
Author

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

@ridiculousfish
Copy link
Member

Seems reasonable. Fixed as e18fd3c. Thanks for filing!

@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

3 participants