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.0 required=5.0 tests=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 5b3eb0ab for ; Fri, 5 Jul 2019 20:30:41 +0000 (UTC) Received: (qmail 23769 invoked by alias); 5 Jul 2019 20:30:35 -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: 24019 Received: (qmail 20923 invoked by uid 1010); 5 Jul 2019 20:30:35 -0000 X-Qmail-Scanner-Diagnostics: from mta03.eastlink.ca by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25496. spamassassin: 3.4.2. Clear:RC:0(24.224.136.9):SA:0(-2.6/5.0):. Processed in 2.422558 secs); 05 Jul 2019 20:30:35 -0000 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.eastlink.ca designates 24.224.136.9 as permitted sender) X-Authority-Analysis: v=2.3 cv=ApaQI91P c=1 sm=1 tr=0 a=cnjiLCurb0vjRq4CKMedvw==:117 a=cnjiLCurb0vjRq4CKMedvw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=NwRlCrG-flV9zfzcHJQA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrfeeggdduhedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecukfhppedvgedrvddtjedrudeirddujeegnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudeirddujeegpdhhvghloheplgduledvrdduieekrddtrddvngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.16.174 Subject: Re: Comprehensive comparison between zsh and bash To: zsh-users@zsh.org References: From: Ray Andrews Message-id: <7aeeabc8-0375-1793-c8a0-1b3af235f1d0@eastlink.ca> Date: Fri, 5 Jul 2019 13:29:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-CA On 2019-07-05 1:01 p.m., Peng Yu wrote: > I’d like to migrate some of my bash scripts to zsh. (Therefore, I don’t > care the difference in the interactive mode.) But there are still many > subtle differences between bash and zsh in the non-interactive part. Just curious:  Is there some way of dumping the state of all variables at all lines with both bash and zsh to some file or other such that one could quickly spot exactly when and where something might change between them?  Not a proactive, analytic study of the code, but just a pragmatic finding of differences after the fact.