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

Command Substitutions with pipe? #2002

Closed
demonking opened this issue Mar 28, 2015 · 4 comments
Closed

Command Substitutions with pipe? #2002

demonking opened this issue Mar 28, 2015 · 4 comments

Comments

@demonking
Copy link

Hello,

I have a problem with command substitutions with pipes?

In bash-shell it would looks like this:

cd $(ls | percol)

execute the command between the $() and then output the information to cd.

But in fish-shell it doesn't seems to work ? or i'm making some mistakes?
cd (ls | percol)

Or is percol here the problem?

@aboisvert
Copy link

I asked a similar question in the past:
(http://sourceforge.net/p/fish/mailman/message/32501848/)

and was pointed towards this issue:
#1362

On Sat, Mar 28, 2015 at 5:12 AM, demonking notifications@github.com wrote:

Hello,

I have a problem with command substitutions with pipes?

In bash-shell it would looks like this:

cd $(ls | percol)

execute the command between the $() and then output the information to cd.

But in fish-shell it doesn't seems to work ? or i'm making some mistakes?
cd (ls | percol)

Or is percol here the problem?


Reply to this email directly or view it on GitHub
#2002.

@demonking
Copy link
Author

@aboisvert thx for you answer, it seems, that i have to fix it through more calls like xargetc

@ridiculousfish
Copy link
Member

Thanks @aboisvert . Yes, dup of #1362. The issue is processes that expect to own the term when running inside command substitutions. We'll likely fix it in the release after the upcoming one.

@ridiculousfish
Copy link
Member

Thanks for reporting this!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants