Loading ...
Sorry, an error occurred while loading the content.

Re: [gvim60at win32] '~' or '$' in path of current directory

Expand Messages
  • dman
    ... FYI, for another data point, on my Linux system here I can include $ in a filename too. $ touch fo $o $ ls fo* fo$o $ In vim60at I need to escape the $
    Message 1 of 7 , Sep 1, 2001
    • 0 Attachment
      On Sat, Sep 01, 2001 at 08:17:06PM +0200, Bram Moolenaar wrote:
      | Martin Horn wrote:
      |
      | > > > > I can reproduce it. This is complicated stuff, but it looks like this
      | > > > > change will fix the problem. Please try it out.
      | > > > [...]
      | > > > Works fine for me.
      | > > >
      | > > > Should '$' be handled the same way? I have tried this:
      | > > >
      | > > > else if (*path == '*' || *path == '?' || *path == '[' || *path ==
      | > '~' ||
      | > > > *path == '$')
      | > > >
      | > > > and it also works for me.
      | > >
      | > > Is that really needed? What is supposed to happen is that the code that
      | > > expands environment variables should take care of "$". Can you give an
      | > > example that fails?

      FYI, for another data point, on my Linux system here I can include '$'
      in a filename too.

      $ touch fo\$o
      $ ls fo*
      fo$o
      $

      In vim60at I need to escape the '$' in order to open it (with the :e
      command) otherwise it expands $o to the empty string and makes a new
      buffer for "fo".

      -D
    Your message has been successfully submitted and would be delivered to recipients shortly.