Hi,

I want to reproduce the sh syntax:
prog --opt "$(cat FILE)"

I want the content of the file FILE to be seen as a single argument to prog.

The syntax:
prog --opt (cat FILE)

doesn't work as the output of the command is not put into a single
argument (as it may contain newlines, spaces, etc.), and the syntax:

prog --opt "(cat FILE)"
prog --opt '(cat FILE)'

doesn't work as the argument is not expanded but it passed verbatim to
the program.

Is possible to replicate that behavior in fish, and in this case how
can I do this?

Regards.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to