Monday, March 29, 2010

Re: Path/executable() Bug

On Mar 29, 1:06 am, Paul <google01...@rainslide.net> wrote:
> The executable() function cannot find files that are in the $PATH, where the file's path element contains a tilde.

The PATH is wrong. Tilde should not appear literally in $PATH, nor
literal '$HOME'.
Make sure PATH does not contain a literal tilde, but rather,
is expansion, the value of $HOME.
Shell won't find executable in such PATH, too.
Try using $HOME when seting PATH, and make sure it is expanded.

Try this in bash:
bash
export PATH=$PATH:~/bin
echo $PATH
Notice tilde is automatically substituted.

It tilde appears in PATH, your PATH is wrong.

Yakov

--
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

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments:

Post a Comment