zsh-users
 help / color / mirror / code / Atom feed
From: Frank Terbeck <ft@bewatermyfriend.org>
To: Joke de Buhr <joke@seiken.de>
Cc: zsh-users@zsh.org
Subject: Re: zsh portable script
Date: Mon, 12 Jul 2010 18:01:20 +0200	[thread overview]
Message-ID: <87eif8sn8v.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <201007121745.20332.joke@seiken.de> (Joke de Buhr's message of "Mon, 12 Jul 2010 17:45:18 +0200")

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

Joke de Buhr wrote:
[...]
>   #!/bin/sh
>=20=20=20
>   if [ -z "$ZSH_VERSION" ]; then
>       ## searching PATH for zsh executable
>       exec zsh $0 $*

That should rather be
        exec zsh "$0" "$@"

Or even better, as Vicent put it:
       exec zsh -- "$0" ${1+"$@"}

The `--' should be pretty clear. About the ${1+"$@"}, see:
  <http://www.in-ulm.de/~mascheck/various/bourne_args/>

Regards, Frank

=2D-=20
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925

[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]

  reply	other threads:[~2010-07-12 16:14 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-12 14:46 Atom Smasher
2010-07-12 15:35 ` Sebastian Stark
2010-07-12 16:10   ` Joke de Buhr
2010-07-12 16:17   ` Vincent Lefevre
2010-07-12 15:37 ` Joke de Buhr
2010-07-12 15:45   ` Joke de Buhr
2010-07-12 16:01     ` Frank Terbeck [this message]
2010-07-12 16:15     ` Vincent Lefevre
2010-07-12 16:18       ` Vincent Lefevre
2010-07-12 16:31         ` Joke de Buhr
2010-07-12 16:43           ` Vincent Lefevre
2010-07-12 16:22       ` Sebastian Stark
2010-07-12 16:39         ` Vincent Lefevre
2010-07-12 16:47           ` Frank Terbeck
2010-07-13 13:02       ` Atom Smasher
2010-07-13 14:29         ` Benjamin R. Haskell
2010-07-13 15:28           ` Atom Smasher
2010-07-13 17:01             ` Benjamin R. Haskell
2010-07-14  1:11               ` Atom Smasher
2010-07-14 11:45           ` Atom Smasher
2010-07-14 15:00             ` Atom Smasher
2010-07-13 13:43   ` François Revol
2010-07-20 14:01     ` Thorsten Kampe
2010-07-20 14:13       ` François Revol
2010-07-20 13:53   ` Thorsten Kampe
2010-07-20 14:07     ` François Revol
2010-07-21  8:34       ` Thorsten Kampe
2010-07-12 15:37 ` Vincent Lefevre
2010-07-12 16:06 ` Peter Stephenson

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=87eif8sn8v.fsf@ft.bewatermyfriend.org \
    --to=ft@bewatermyfriend.org \
    --cc=joke@seiken.de \
    --cc=zsh-users@zsh.org \
    /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).