On Sun, Jun 24, 2012 at 01:06:50AM -0700, Kevin Ballard wrote: > Strange, :!ls works just fine for me when fish is my login shell. What > exactly is vim doing for you that's not compatible with fish?
He used ':r !ls'. You aren't attempting to do the read. The command works because vim is just running it in your shell. By default, when vim attempts to read the output of the command into your file, it uses > (ls) > /tmp/[somerandomstring] to do so. In a POSIX shell, this launches a subshell, which then runs the command 'ls' and returns the result. In fish, the parentheses signify inserting the output of the given command directly into the line you've typed. But fish also does not allow this sort of syntax to be used in the command specification, so it throws the error. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users