Patch 8.2.2110
Problem:    Cannot use ":shell" when reading from stdin. (Gary Johnson)
Solution:   Revert patch 8.2.1833.
Files:      src/main.c


*** ../vim-8.2.2109/src/main.c  2020-11-30 17:40:41.303714382 +0100
--- src/main.c  2020-12-08 19:35:11.491103622 +0100
***************
*** 2709,2715 ****
      set_buflisted(TRUE);
  
      // Create memfile and read from stdin.
-     // This will also dup stdin from stderr to read commands from.
      (void)open_buffer(TRUE, NULL, 0);
  
      no_wait_return = FALSE;
--- 2709,2714 ----
***************
*** 2717,2722 ****
--- 2716,2729 ----
      TIME_MSG("reading stdin");
  
      check_swap_exists_action();
+ 
+ #if !(defined(AMIGA) || defined(MACOS_X))
+     // Dup stdin from stderr to read commands from, so that shell commands
+     // work.
+     // TODO: why is this needed, even though readfile() has done this?
+     close(0);
+     vim_ignored = dup(2);
+ #endif
  }
  
  /*
*** ../vim-8.2.2109/src/version.c       2020-12-08 19:18:33.446080241 +0100
--- src/version.c       2020-12-08 19:36:06.694938408 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2110,
  /**/

-- 
Citizens are not allowed to attend a movie house or theater nor ride in a
public streetcar within at least four hours after eating garlic.
                [real standing law in Indiana, United States of America]

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202012081836.0B8IarwU1704676%40masaka.moolenaar.net.

Raspunde prin e-mail lui