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
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users