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 a0993ab2 for ; Mon, 10 Jun 2019 17:35:37 +0000 (UTC) Received: (qmail 12575 invoked by alias); 10 Jun 2019 17:35:29 -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: 23970 Received: (qmail 18751 invoked by uid 1010); 10 Jun 2019 17:35:29 -0000 X-Qmail-Scanner-Diagnostics: from mta04.eastlink.ca by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25475. spamassassin: 3.4.2. Clear:RC:0(24.224.136.10):SA:0(-2.6/5.0):. Processed in 2.306618 secs); 10 Jun 2019 17:35:29 -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.10 as permitted sender) X-Authority-Analysis: v=2.3 cv=D4851cZj c=1 sm=1 tr=0 a=cnjiLCurb0vjRq4CKMedvw==:117 a=cnjiLCurb0vjRq4CKMedvw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=VdthaBKoOGJ7q_MwDMEA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehvddgudduiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucfkphepvdegrddvtdejrdduiedrudejgeenucfrrghrrghmpehinhgvthepvdegrddvtdejrdduiedrudejgedphhgvlhhopegludelvddrudeikedrtddrvdgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.16.174 Subject: Re: help adapting bashism for zsh To: zsh-users@zsh.org References: From: Ray Andrews Message-id: <04b113b3-b808-5d19-1346-dbcb3038578b@eastlink.ca> Date: Mon, 10 Jun 2019 10:34:50 -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-06-10 7:53 a.m., Roman Perepelitsa wrote: > automatic translation of bash code to zsh. It's likely that your > requirements are unique. Usually systems that can afford to have zsh > can also afford to have bash, so no translation is necessary. > In my case I didn't want the bother of having to learn the idiosyncrasies of two shells.  I picked one and was hoping to never have to learn the other.  If I was planning to transition from bash to zsh, I'd be hoping to subsequently avoid bash altogether and thus go through the conversion trouble once but then forget about bash and do all further work in zsh.  So space considerations would be the least of my motives.  Just me, but zsh syntax is so abstruse that not only learning it, but also trying to remember the differences vis a vis bash, would seem brain blowing. So it seems David will have to do it line by line.