Hi Fishers,
In fish, command substitution returns a list when the command outputs
multiple lines, like this:
function foo; echo $argv[1]; end
foo (echo a; echo b; echo c)
a
But what do you do when you need the output as one word? (Where, in
Other Shells, you might do ‘foo $(echo a; echo
On Thu, Mar 26, 2015, at 01:07 PM, Elias Assmann wrote:
On 03/26/2015 03:51 PM, Greg Reagle wrote:
How does this work?
svnlist | xargs -0 svn ps svn:ignore
That is a neat idea, but in this case it does not work like that because
‘svn propset’ wants the property value first. From the
A couple of relevant issues on github:
https://github.com/fish-shell/fish-shell/issues/1656
https://github.com/fish-shell/fish-shell/issues/159
The problem: can't capture command substitution output with newlines intact
$ set out (seq 5)
$ echo $out
1 2 3 4 5
To do it properly, we need to
Thanks for the additional approaches (in I fact I new about neither IFS
in fish nor the {list}\n feature), as well as the pointers to the
discussions. I searched the mailing list before I posted, but not the
github page.
Elias