In fish's user doc (section "Combining different expansions"):

> When combining multiple parameter expansions, expansions are performed
> in the following order:
>
>   * Command substitutions
>   * Variable expansions

So command substitutions get performed before variable expansions?

But give fish the following code:

    echo $(echo HOME)

fish said:

    echo $(echo HOME)
         ^

It seems variable expansion happens first here?


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to