I don't think this can really be called a "subshell", because it's not a subshell in the sense that sh's subshells are. sh subshells inherit all variables, functions, and shell settings from their parent shell, but a child fish shell won't inherit anything beyond exported variables.
-Kevin > On Oct 29, 2014, at 1:19 PM, Greg Reagle <greg.rea...@umbc.edu> wrote: > > Question: > --------- > How do I run fish code in a subshell? > > Answer: > ------- > Call fish explicitly, for example > fish -c 'echo %self' > or > echo 'echo %self' | fish > or > fish < fish_script_file > > Keep in mind that using parentheses (command substitution) does *not* start > a subshell. The 2 commands > echo %self > and > echo (echo %self) > produce the same result because fish does not fork to process command > substitution. > > ------------------------------------------------------------------------------ > _______________________________________________ > Fish-users mailing list > Fish-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fish-users
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------
_______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users