From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 84699893 for ; Tue, 5 Feb 2019 01:29:16 +0000 (UTC) Received: (qmail 26744 invoked by alias); 5 Feb 2019 01:28:59 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23858 Received: (qmail 24171 invoked by uid 1010); 5 Feb 2019 01:28:59 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot1-f51.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25112. spamassassin: 3.4.2. Clear:RC:0(209.85.210.51):SA:0(-2.0/5.0):. Processed in 3.716316 secs); 05 Feb 2019 01:28:59 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=nmO1d4IqBypuGmQ7JguBN4oXY305KOGbyA0epoRntr8=; b=NsEfOU8uJKE3OhyhcS1ibfBm3cbFlpMtvH6RF6H6ZaeSDQkMArWJArLbB21BQkVXGl ++B4fSgwy8QovUmaFVc2okgk+wdljrUynYQJ8lkB7Yvt1r3SswgK9rbsuxtTucX8sIpk 2Pyp1I2gBlHx3OrWXly04peSmaRMJlXvViB8yOD6sE66MzQqROYycVxDyWnu77k555Kn d/CAAVJCEn0LZFtfaMbPdpZYblkpwaMfMjsEm8I5y06OiRv0QUm/aSOKGXb360udUplm usHMCs6/lI5mfb2FzYFffW0nKFcLXzhouq2GCDyLX679jeJhHrsZMV83hDfIX/YmYKrb gEFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=nmO1d4IqBypuGmQ7JguBN4oXY305KOGbyA0epoRntr8=; b=fzjWku+/9T6oLgt8WwOYngW40MaoV0gb6OMw2qFnRF6NQxY0guWilaedG9YiApHLbt 7XFxnBQ+t+cQa88VV2QiKpqAW5zR48dRqSCdbiCV5gz0XLW5oCUAPoDrBtK9BhWaLD7t 0u/2iD+wDINr8ZLIuytO7e5JoGwx3u1aQJzcOqFSBvnPr1i1VhVWycTGxY8okw9JaJ6R ub0WxpPa0a1KS1m1/7HxPD5jG+7Br3IfxpkaTS7iPb6tMnhnKkM2D+ZO/zXBppd820ej qpjIlaZR3jagvpb0TQaxfZbtU8KivOK+Yy7oIInVQp/y52EREggpGf/eHDsnT5Aif0ky WCWg== X-Gm-Message-State: AHQUAuaqpxN9UB9UzPovAnRsgEa+zONRsPPtUh4nm3R15XqXwAkspzLS 8lm6/P6mCXT57E4imOmzyLHl3hdD+LCXAGoSLm4SHcSS X-Google-Smtp-Source: AHgI3IZl2ZMV8a3c5iqDAZzcBaE8HzDYWFp1dsRB0+20HuLiKmREr9Zfm8xfm35wjL4LIfoqANo9QdxuioILYcbA6cc= X-Received: by 2002:a9d:3bc7:: with SMTP id k65mr1279973otc.11.1549330131281; Mon, 04 Feb 2019 17:28:51 -0800 (PST) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Tue, 5 Feb 2019 02:28:39 +0100 Message-ID: Subject: Why multios affects >/dev/tty redirection? To: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I have a command: scrapy crawl 2nd "$@" "${optarray[@]}" 2> /tmp/reply 2> /dev/tty 1> /tmp/reply 1> /dev/tty When invoked this way, scrapy (a python project) spawns an interactive console and it isn't fully usable =E2=80=93 e.g.: cursor keys emit escape sequencess rather t than moving the cursor or browsing history. However, when I invoke scrqpy in following way: scrapy crawl 2nd "$@" "${optarray[@]}" 2> /dev/tty 1> /dev/tty Then the python interactive console spawned by scrapy is working fully correct =E2=80=93 cursor keys are working (ii.e. they move the cursor and browse the history), the same for Home/End keys, etc. Is there a way around this? The actual command that I'm running uses multios to redirect un-colorized messages to a log files: scrapy crawl 2nd_Crawler "$@" "${optarray[@]}" 2> >(ansifilter \ >>! "$logpth/2nd_scrapy.slog") 2> /dev/tty \ > >(ansifilter >>! "$logpth/2nd_scrapy.slog") 1> /dev/tty --=20 Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org