From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15700 invoked from network); 17 Jan 2009 09:25:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 Jan 2009 09:25:42 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 94840 invoked from network); 17 Jan 2009 09:25:37 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Jan 2009 09:25:37 -0000 Received: (qmail 6530 invoked by alias); 17 Jan 2009 09:25:33 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26341 Received: (qmail 6519 invoked from network); 17 Jan 2009 09:25:32 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 17 Jan 2009 09:25:32 -0000 Received: from mail.o2.co.uk (sidious.london.02.net [82.132.130.152]) by bifrost.dotsrc.org (Postfix) with ESMTP id EF89780271F0 for ; Sat, 17 Jan 2009 10:25:17 +0100 (CET) Received: from sc.homeunix.net (78.105.235.196) by mail.o2.co.uk (8.0.013.3) (authenticated as stephane.chazelas) id 496A3D850149A43A; Sat, 17 Jan 2009 09:25:15 +0000 Received: from chazelas by sc.homeunix.net with local (Exim 4.69) (envelope-from ) id 1LO7QZ-0001QP-E1; Sat, 17 Jan 2009 09:25:15 +0000 Date: Sat, 17 Jan 2009 09:25:15 +0000 From: Stephane Chazelas To: david sowerby Cc: zsh-workers@sunsite.dk Subject: Re: select problem Message-ID: <20090117092515.GA5400@sc.homeunix.net> Mail-Followup-To: david sowerby , zsh-workers@sunsite.dk References: <234804.32891.qm@web36605.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <234804.32891.qm@web36605.mail.mud.yahoo.com> User-Agent: Mutt/1.5.16 (2007-09-19) X-Virus-Scanned: ClamAV 0.92.1/8873/Sat Jan 17 04:33:31 2009 on bifrost X-Virus-Status: Clean On Mon, Jan 12, 2009 at 11:48:25AM -0800, david sowerby wrote: > I don't want to subscribe to the mailing lists so please cc > I wrote a shell script in bash (sorry) before I switched to zsh. > The script has no "bashisms" but when I changed #!/bin/bash to > #!/bin/zsh it didn't work correctly -- zsh ver 4.3.6 on debian > It's just a simple script using select to print a list of > music, choose a file and play it. > select input in $(/bin/ls -A /home/david/music) [...] Sorry, I'm not answering you question, but just a note: There's no such thing as a bashism as all (except for a few little ones) bash features come either from ksh, zsh or (t)csh. "select" is not standard (that is not in the POSIX sh, which is the only standard you can expect both bash and zsh to conform to (when called as "sh")) and is a kshism. It's also rather useless as one can do the same thing easily without. -- Stéphane