I would avoid using eval for this, since the goal is merely to split
a string. fish already splits output by newlines (as if IFS=\n), so
> docker (./machine config prl | tr \ \t \n) ps
is sufficient to mimic IFS=\n\ \t
Why? eval will fully interpret the output, expanding variables and
executing su
This is because fish only separates output on newline characters, rather
than using bash's curious IFS scheme. The solution? Replace your desired
field separators with newlines, which fish will then happily split.
> g++ (pkg-config --cflags --libs gtk+-2.0 | sed 's/\s\+/\n/g') test.cpp
This can r
On Wed, Sep 21, 2011 at 03:41:54PM -0400, Stestagg wrote:
> [sorry Robert, for the direct reply]
Your secret is safe with me. ;)
> In bash, at least, the $IFS environment variable is used to specify
> the characters used to split arguments into their constituent parts.
> the $* function then uses
On Wed, Sep 21, 2011 at 10:36:41AM +0200, Jan Kanis wrote:
> On Wed, Sep 21, 2011 at 03:07, Robert Shinka <[1]k...@unknownlayer.net>
> wrote:
>
>In both fish-1.23.1 and the latest git, it does not work that way.
>> set var a b c d (echo e\ \ f\ng)
On Wed, Sep 21, 2011 at 01:05:07AM +0200, Jan Kanis wrote:
> On Mon, Sep 19, 2011 at 17:06, Robert Shinka <[1]k...@unknownlayer.net>
> wrote:
>
>I'm only proposing changing the semantics of "$var", while $var would be
>unchanged, so the common
On Tue, Sep 20, 2011 at 12:08:27AM +0300, Philip Ganchev wrote:
> On Mon, Sep 19, 2011 at 6:06 PM, Robert Shinka wrote:
> >
> > I'm only proposing changing the semantics of "$var", while $var would be
> > unchanged, so the common case of (echo $var) would
On Mon, Sep 19, 2011 at 04:18:18PM +0300, Philip Ganchev wrote:
> On Mon, Sep 19, 2011 at 1:47 AM, Robert Shinka wrote:
> > On Sun, Sep 18, 2011 at 09:20:21PM +0200, Jan Kanis wrote:
>
> >> Bash treats command substitution and variable expansion as a list of
> >>
On Sun, Sep 18, 2011 at 09:20:21PM +0200, Jan Kanis wrote:
> On Sat, Sep 17, 2011 at 07:08, Robert Shinka <[3]k...@unknownlayer.net>
> wrote:
>
>Notice how fish handily split the resulting string at newlines into
>separate array elements, and then expanded th
On Thu, Sep 15, 2011 at 11:18:16PM +0200, Jan Kanis wrote:
>
> AFAIK fish has no syntax to say "use the result of this command as a single
> argument". Did I miss anything on this?
No. I'm pretty sure you have the right understanding.
>
> - Is there syntax that I missed that does this?
No
On Wed, Jul 13, 2011 at 09:36:45AM -0500, Myrddin Emrys wrote:
> The problem with that logo, nice as it is, is that the > should be on the
> right (as the final prompt character) rather than the left.
> And as far as pretty prompts... I'm of the opinion that they are a waste of
> space overall,
https://gitorious.org/fish-shell indicates that the website for fish is
fishshell.org, which should be changed to fishshell.com for the time being.
If development for fish is going to remain on gitorious, I'll update the
freshmeat project page to include that as well.
---
11 matches
Mail list logo