On Mon, Feb 9, 2015, at 11:17 PM, Luciano ES wrote:
> There is this command I like to run a lot:
> 
> :r! sed '/pattern/\!d' /home/luc/db/info.txt
> 
> It used to work fine, but now I get this error:
> 
> fish: Illegal command name "(sed '/pattern/\!d' /home/luc/db/info.txt)"
> Standard input: (sed '/pattern/\!d' /home/luc/db/info.txt) >
> /tmp/v5pU4gh/0
> 
> What does it mean? Why am I getting this?

I think I've figured it out.  Vim is enclosing the shell command in
parentheses.  In Bourne Shell the parentheses are a grouping construct
that call a subshell.  In fish the parentheses have a different
incompatible meaning.  Vim is depending on Bourne Shell semantics for
the external shell.  See my other post for how to work around.

-- 
http://www.fastmail.com - Or how I learned to stop worrying and
                          love email again


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to