Sunday, January 8, 2012

Re: running commands with !

On 08/01/12 13:41, Tim Chase wrote:
> On 01/08/12 06:19, eNG1Ne wrote:
>> I have three different machines with a score-writing package on, and
>> on two of the three I can run the "compile" equivalent to create
>> PostScript output with
>> !mup -F %
>>
>> On the third, I hit the following snag:
>>
>> !mup {fname} reports /bin/bash: mup: command not found
>>
>>> which mup reports "/usr/local/bin/mup-5.7/bin"
>> /usr/local/bin/mup-5.7/bin is the last entry in $PATH
>
> Strange: "which mup" should include mup at the end, something like
>
> /usr/local/bin/mup-5.7/bin/mup
>
> If that's the case, check what $PATH are set to in the shell and from
> within Vim. The same command works in both:
>
> bash$ echo $PATH
> :echo $PATH
>
> They *should* be the same, but perhaps for some reason it's getting
> tweaked before you go into vim.
>
> Also, make sure that you can execute an unqualified "mup" on the
> command-line, removing vim from the picture.
>
> Lastly, if it works unqualified from the command-line, I'd check for any
> aliases that are silently interfering.
>
> At least that's where I'd start...
>
> -tim
>
>
>
>
>

In bash,

type -a mup
will tell you all "mup" commands known to bash, including builtins (for
mup there won't be any), shell functions, aliases (if any) and
executables anywhere in the $PATH (if any). If it doesn't answer
anything, then there is no "mup" alias and no "mup" in your $PATH.


Best regards,
Tony.
--
A KNIGHT rides into shot and hacks him to the ground. He rides off.
We stay for a moment on the glade. A MIDDLE-AGED LADY in a C. & A.
twin-set emerges from the trees and looks in horror at the body of her
HUSBAND.
MRS HISTORIAN: FRANK!
"Monty Python and the Holy Grail" PYTHON (MONTY)
PICTURES LTD

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: