zsh-workers
 help / color / mirror / code / Atom feed
From: DervishD <raul@pleyades.net>
To: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: Zsh <zsh-workers@sunsite.dk>
Subject: Re: Recursion and shell functions
Date: Fri, 11 Oct 2002 20:27:46 +0200	[thread overview]
Message-ID: <20021011182746.GA16012@DervishD> (raw)
In-Reply-To: <E1802KE-0001g0-00@bimbo.logica.co.uk>

    Hi Oliver :))

> >     The only requirement is a SuSv3 compatible shell :(
> I'm not sure whether SuSv3 defines a behaviour for a recursive
> function. If you test it on a few implementations it should be okay.

    It does not, but it is supported at least in zsh and bash. When
released I suppose that people will test it under more shells.

> > >   set *
> Note than in a zsh that isn't emulating Bourne, this might result
> in an error when * doesn't match anything.

    I've thought of a solution: we create some 'fake' file so the
asterisk at least expands to that file. There is no problem with
this, since we have control over the source directory and we can
write over it. Anyway we would like a better solution O:)))

    All this is for a 'configure' clone that I'm doing called MOBS
(My Own Build System) that I use in my projects. It's GPL'd and will
be released (at least!) in a couple of weeks.

> > > Something like find is going to be more reliable though.
> If you do this, you might want to take a little care over a few things

    Thanks for your advise :))). I'll try to make it as reliable as I
can. And if I think of a better solution for the '*' expansion issue,
I will tell on the list :)

    Thanks a lot for your help :)))) You've saved me a lot of (unpaid
but pleasant) work :)))

    Raúl


      parent reply	other threads:[~2002-10-11 18:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-10 19:41 DervishD
2002-10-10 19:44 ` DervishD
2002-10-10 20:02 ` Jason Price
2002-10-10 21:15   ` DervishD
2002-10-11  9:02 ` Oliver Kiddle
2002-10-11 11:05   ` DervishD
     [not found]     ` <E1802KE-0001g0-00@bimbo.logica.co.uk>
2002-10-11 18:27       ` DervishD [this message]

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=20021011182746.GA16012@DervishD \
    --to=raul@pleyades.net \
    --cc=okiddle@yahoo.co.uk \
    --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).