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

Re: Bug? vim -e -s < f1 a

Expand Messages
  • Bram Moolenaar
    ... Your command file doesn t mention writing the file or exit. Silent Ex mode always exits when EOF is read on the input. In this case nothing gets written,
    Message 1 of 2 , May 10, 2004
      Mikolaj Machowski wrote:

      > vim63a.6, big, perl, python, gcc3.3.1
      > I understand
      >
      > vim -e -s < f1 a
      >
      > (where f1 is
      > :0r c
      >
      > )
      > should output to STDIN connected files c and a.
      > But output is empty.
      >
      > vim -s f1 a
      >
      > works properly.

      Your command file doesn't mention writing the file or exit. Silent Ex
      mode always exits when EOF is read on the input. In this case nothing
      gets written, changes are lost. That doesn't happen when not in Ex
      mode.

      --
      hundred-and-one symptoms of being an internet addict:
      231. You sprinkle Carpet Fresh on the rugs and put your vacuum cleaner
      in the front doorway permanently so it always looks like you are
      actually attempting to do something about that mess that has amassed
      since you discovered the Internet.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
      \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
    Your message has been successfully submitted and would be delivered to recipients shortly.