From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29757 invoked by alias); 16 Dec 2016 15:33:33 -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: X-Seq: 22221 Received: (qmail 8842 invoked from network); 16 Dec 2016 15:33:33 -0000 X-Qmail-Scanner-Diagnostics: from mta01.eastlink.ca by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(24.224.136.30):SA:0(-3.8/5.0):. Processed in 1.731771 secs); 16 Dec 2016 15:33:33 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-3.8 required=5.0 tests=RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 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.30 as permitted sender) X-Authority-Analysis: v=2.2 cv=ZvqvEJzG c=1 sm=1 tr=0 a=Iqk5BMYUIqxu9iDzk28q/A==:117 a=Iqk5BMYUIqxu9iDzk28q/A==:17 a=IkcTkHD0fZMA:10 a=KyadAYQr1EY6PseB2IwA:9 a=TW-n82Oo3wzziaoc:21 a=9sAjsUgIIrSo5pDJ:21 a=QEXdDO2ut3YA:10 X-EL-IP-NOAUTH: 24.207.19.54 Message-id: <58540944.3030706@eastlink.ca> Date: Fri, 16 Dec 2016 07:33:24 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: Zsh Users Subject: trapped in bash Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit So I'm setting up a new machine with Debian 64 (using Debian 32 still on old machine) and I'm thinking to just copy over my whole zsh install from here to there and ... nope ... I 'cd' to where the binary is and type 'zsh' and bash reports that it can't find the file. Copy it to '/bin' and it still can't find it. Even the desperate '. ./zsh' reports 'cannot execute binary file'. I hope to gawd that an apt-get install of zsh would work, but I'd like to use my existing setup exactly as is. Do I have to rebuild? I'm new with 64 bit issues, whatever they may happen to be, but I thought a 64 bit environment could always run 32 bit apps. Or have I forgotten something simple? Meanwhile I'm trapped in the pre-fire age of bash out of the box. Even 'ls -l' doesn't work, filenames only. They say that suffering purifies the soul ;-) BTW: _array=( ${(f)_variable} ) _count=$#_array # Count the number of lines. Can that be simplified? I don't need the _array, just the _count. Of course there are any number of utilities to count lines, but I mean the simplest zsh way, although the above is nicely self-explanatory.