zsh-workers
 help / color / mirror / code / Atom feed
From: Stephane Chazelas <Stephane_Chazelas@yahoo.fr>
To: david sowerby <d_sowerby@yahoo.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: select problem
Date: Sat, 17 Jan 2009 09:25:15 +0000	[thread overview]
Message-ID: <20090117092515.GA5400@sc.homeunix.net> (raw)
In-Reply-To: <234804.32891.qm@web36605.mail.mud.yahoo.com>

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


  parent reply	other threads:[~2009-01-17  9:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-12 19:48 david sowerby
2009-01-17  7:12 ` Andrey Borzenkov
2009-01-17  9:25 ` Stephane Chazelas [this message]
2009-01-17 11:21   ` Richard Hartmann
2009-01-18 14:39     ` Stephane Chazelas
2009-01-18 15:45       ` Richard Hartmann
2009-01-20 19:42         ` Peter Stephenson
2009-01-20 21:30           ` Richard Hartmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090117092515.GA5400@sc.homeunix.net \
    --to=stephane_chazelas@yahoo.fr \
    --cc=d_sowerby@yahoo.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).