To: vim_dev@googlegroups.com Subject: Patch 8.2.2110 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- 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 ///