zsh-workers
 help / color / mirror / code / Atom feed
From: DervishD <raul@pleyades.net>
To: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: zsh-workers@sunsite.dk
Subject: Re: Recursion and shell functions
Date: Fri, 11 Oct 2002 13:05:13 +0200	[thread overview]
Message-ID: <20021011110513.GB270@DervishD> (raw)
In-Reply-To: <E17zvgr-0003sa-00@bimbo.logica.co.uk>

    Hi Oliver :)

    Thanks a lot for your answer :)

> If you know that you will at least have ksh88, you can get local
> variables by using the function name { ... } syntax for functions
> and using typeset to declare variables.

    The only requirement is a SuSv3 compatible shell :(

> The bourne shell doesn't have local variables except for the
> positional parameters and you can use them.

    Of course, how I missed?!!!

> I think this will be portable:
> 
> func() {
>   set *

    I don't catch this :??? What is it for? Oh, I know, it sets '$1',
'$2', etc... to the files and directories in current dir :)) Very
inteligent :))

> Something like find is going to be more reliable though.

    Of course. I'm considering adding the dependency on 'find', but I
will really try to avoid :)) Thanks for your example. You're great,
Oliver :)

    Raúl


  reply	other threads:[~2002-10-11 11:07 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 [this message]
     [not found]     ` <E1802KE-0001g0-00@bimbo.logica.co.uk>
2002-10-11 18:27       ` DervishD

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=20021011110513.GB270@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).