Hey mark,

On Tue, Sep 1, 2009 at 9:52 AM, Mark Ryall<[email protected]> wrote:
> The other thing i'd really like to be able to do is to execute something to
> populate an environment variable
>
> In bash you can do stuff like:
>
> export FOO_PID=`cat foo.pid`
>
> Anyone have any idea how to do that in fish?
>
> I haven't noticed it mentioned in the documentation.
>
> If you execute:
>
> set -x FOO `cat foo.pid`
>
> ... you just get the literal string `cat foo.pid`

in fish you use () instead of backticks thus:

set -x FOO (cat foo.pid)

see here in the doceux
http://fishshell.org/user_doc/index.html#expand-command-substitution

fish on!
:Lachie

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to