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 65cc5eec for ; Sun, 2 Dec 2018 18:39:09 +0000 (UTC) Received: (qmail 13979 invoked by alias); 2 Dec 2018 18:38:55 -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: 23774 Received: (qmail 16551 invoked by uid 1010); 2 Dec 2018 18:38:55 -0000 X-Qmail-Scanner-Diagnostics: from mail-oln040092010057.outbound.protection.outlook.com (unknown@mail-oln040092010057.outbound.protection.outlook.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(40.92.10.57):SA:0(-1.9/5.0):. Processed in 2.272767 secs); 02 Dec 2018 18:38:55 -0000 X-Envelope-From: eric@amalgamar.com.br X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | From: Eric Nielsen To: "zsh-users@zsh.org" Subject: Re: Mapping from bash command/syntax to zsh command/syntax Thread-Topic: Mapping from bash command/syntax to zsh command/syntax Thread-Index: AQHUimbP6iPvHN+i1EGCul8mF8PuKKVrx7gx Date: Sun, 2 Dec 2018 18:38:48 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US, pt-BR Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:D33BD80AE58B8EDE2799BA4E8D893CDEC4A46353B6FCD19069E9D1FA765F8612;UpperCasedChecksum:17699AF3E3953D7DBC222A3E2547E6ED1C0349237D8009DCA8A0C2446BBB7FE4;SizeAsReceived:7075;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [V2q6zCCSioFh515x/dejoTBRty1X/ek8] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN3NAM04HT081;6:Z54PWhlFYl+DYMJ6lmka8W+qUoe+BeBKCMil14G2ZbdvPQOhJBalAY0VNbdxB7uk+BECrelgirEIYol/KXIcDc5LcBeJ+Qc5u9I3GZiEa/ZkO22RDuCjme3LJTH+bxn44p/BxSfe2wb+JExwIXVLZC6BNwcl9YBs/88ACFrQgFH5nX4zwTATEi649RG9u3tszrlQ+RU0lpvmwipBN9/odurpQ1Pyt1T2S0CGpXx43CDKjFfkRiZmTEH7KHpEbaH+jehpe+RFR0FfQqMnl0CASSSQmgaFnCCxYAQiybWWKv3+APlD3DHUo5eld3TWVQdJM7B4cekvug3bWrNEN3gjaNsvtGQ5XH1gGKXSBKsV3Og+nTMlWoWbTkUMtgdMyxh9PcByuTkL/GU179aXtkaLitoLMoBMAxX6kUtmqfucAeGW2Sca69GlAsVoI5up4J1oA72qFJMfXSB0JyQBqkfbKA==;5:IooftrUYyzGiFk8r9gbMBoryEAA7RnGJ0Ra2sxoJGEQOzfLXuxwVNnSYKcBdTz1uJqY2TrGggjRmu8MnC5SOHttIHHxAz0xw/pSMKtPBd81b0SIvm6AVISeoBPsJkp6un6kT6Sq7P7IkKlN9tfX2CHKAmntzfMFpHY2p/tcBcgY=;7:GLTeYPKDFP2E5nMdI/FEM5QWq0yi93wnpV0VY2hbhRX1daSI+e1QANiC7/Nsa7kk05Kiu957Jp8RKZ4cKnsOnXB3EMDBGhdfYM05u8nLcq5PZ585pNWzxRHDGxWKI3m+k5pY2r8+WXSxCNpIFs5G1g== x-incomingheadercount: 46 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101475)(1601125500)(1701031045);SRVR:BN3NAM04HT081; x-ms-traffictypediagnostic: BN3NAM04HT081: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(4566010)(82015058);SRVR:BN3NAM04HT081;BCL:0;PCL:0;RULEID:;SRVR:BN3NAM04HT081; x-microsoft-antispam-message-info: 65/4QBZ3x4Gg5qs+4FK+Ry8NH62sGPvusZ1xtShiKWNxchIFvPEoNEVSgMPTmNCa Content-Type: multipart/alternative; boundary="_000_SC1P152MB175896D4002B08BBDAE0A72BEFAD0SC1P152MB1758LAMP_" MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: dd759f05-a917-4aa0-a2f5-4cc35c50e0c8 X-MS-Exchange-CrossTenant-Network-Message-Id: 37844d70-95b3-4805-85e6-08d658856633 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: dd759f05-a917-4aa0-a2f5-4cc35c50e0c8 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Dec 2018 18:38:48.6860 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM04HT081 --_000_SC1P152MB175896D4002B08BBDAE0A72BEFAD0SC1P152MB1758LAMP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Best one I know is http://hyperpolyglot.org/unix-shells -------- Original message -------- From: Peng Yu Date: 12/2/18 12:45 (GMT-05:00) To: zsh-users@zsh.org Subject: Mapping from bash command/syntax to zsh command/syntax Hi, I'd like to migrate some of bash scripts to zsh. The most efficient way is to look up a dictionary of all the mapping of syntax/command to zsh. However, I don't find such a complete list. I see some comparisons between bash and zsh, but none of them are detailed enough so that I can straight-forwardly migrate a bash script to a zsh script. Does anybody have a complete list to show the corresponding zsh syntax/command for bash syntax/command? Thanks. -- Regards, Peng --_000_SC1P152MB175896D4002B08BBDAE0A72BEFAD0SC1P152MB1758LAMP_--