(Adjust previous/next navigation) |
(Undo revision 22988 by 85.217.224.50 (talk)) |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 12: | Line 12: | ||
|category2= |
|category2= |
||
}} |
}} |
||
− | Could not execute shell commands ending with ampersand (& |
+ | Could not execute shell commands ending with ampersand (&) in gvim running under FreeBSD. Commands like: |
<pre> |
<pre> |
||
− | :!xdvi & |
+ | :!xdvi & |
− | :!xterm & |
+ | :!xterm & |
</pre> |
</pre> |
||
− | did not work. This meant that I couldn't use vim-latex to view documents dvi since by default vim-latex sends a command ending with & |
+ | did not work. This meant that I couldn't use vim-latex to view documents dvi since by default vim-latex sends a command ending with &. The problem does not occur in vim. |
+ | Hint: Check the parameters gvim is started with! In the KDE menu gvim is started with -f option which can cause this problem. |
||
+ | |||
+ | + |
||
The problem is solved if the shell is changed to ksh from the default sh or bash. |
The problem is solved if the shell is changed to ksh from the default sh or bash. |
||
Line 41: | Line 44: | ||
==Comments== |
==Comments== |
||
− | |||
− | ---- |
Latest revision as of 22:40, 19 April 2009
Tip 846 Printable Monobook Previous Next
created January 9, 2005 · complexity basic · author Rabee Tourky · version 6.0
Could not execute shell commands ending with ampersand (&) in gvim running under FreeBSD. Commands like:
:!xdvi & :!xterm &
did not work. This meant that I couldn't use vim-latex to view documents dvi since by default vim-latex sends a command ending with &. The problem does not occur in vim.
Hint: Check the parameters gvim is started with! In the KDE menu gvim is started with -f option which can cause this problem.
+ The problem is solved if the shell is changed to ksh from the default sh or bash.
Install pdksh:
$ su (su to root) # cd /usr/ports/shells/pdksh/ #make install cleanset
Change the shell to ksh in .vimrc. Add:
set sh=ksh