comparison src/testdir/test_channel_pipe.py @ 8455:d0717262d802 v7.4.1518

commit https://github.com/vim/vim/commit/f65333c9b59654a70f2a07200f65c93dfcaa49b3 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 8 18:27:21 2016 +0100 patch 7.4.1518 Problem: Channel with disconnected in/out/err is not supported. Solution: Implement it for Unix.
author Christian Brabandt <cb@256bit.org>
date Tue, 08 Mar 2016 18:30:05 +0100
parents 6f26b680c243
children 072556995a8e
comparison
equal deleted inserted replaced
8454:41802f51dbb4 8455:d0717262d802
8 import sys 8 import sys
9 9
10 if __name__ == "__main__": 10 if __name__ == "__main__":
11 11
12 if len(sys.argv) > 1: 12 if len(sys.argv) > 1:
13 print(sys.argv[1]) 13 if sys.argv[1].startswith("err"):
14 print(sys.argv[1], file=sys.stderr)
15 sys.stderr.flush()
16 else:
17 print(sys.argv[1])
18 sys.stdout.flush()
14 19
15 while True: 20 while True:
16 typed = sys.stdin.readline() 21 typed = sys.stdin.readline()
17 if typed.startswith("quit"): 22 if typed.startswith("quit"):
18 print("Goodbye!") 23 print("Goodbye!")