bgold12 wrote:
What is your name?
> I recently added a couple of directories to my path and then found
> that the command-line shell command (i.e. ":!ls") stopped working.
> More specifically, the shell didn't seem to be able to find any of my
> cygwin or otherwise utilities. I have been able to identify that when
> my $PATH is 259 characters or less in length, there is no problem, but
> when I add that 260th character, suddenly the $PATH variable becomes
> empty in the spawned shell. In other words, when I run the command ":!
> echo $PATH", I see a blank line (only when $PATH is 260 characters or
> greater).
>
> This problem only seems to be present when I use the MS-Windows 32-bit
> console version of vim with bash as my shell. I'm currently using the
> following settings:
>
> set shell=/bin/bash
> set shellcmdflag=-c
> set shellslash
> set shellredir=>%s\ 2>&1
>
> This seems like a bug to me, but correct me if I'm wrong.
It probably depends on the compiler, what maximum path length it
supports. Where did you get the executable? The ":version" output
would be useful.
--
Hanson's Treatment of Time:
There are never enough hours in a day, but always too
many days before Saturday.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---