On 04/15/2015 11:45 AM, Sanne Wouda wrote:
> Greg, unfortunately, you cannot rewrite it like that.  You have to
> put quotes around (cat $tmp), or each token will end up on its own
> line in the command buffer.  (And in fish, you cannot do command
> substitution inside quotes.)

I don't understand.  Could you gave an example of input that won't work?  I am 
currently using this without problems so far:

function edit_commandline
        set -q EDITOR; or return 1
        set -l tmpfile (mktemp); or return 1
        commandline > $tmpfile
        eval $EDITOR $tmpfile
        commandline -r (cat $tmpfile)
        rm $tmpfile
end

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to