Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: what's the point of the precommand modifier - ?
- X-seq: zsh-users 26067
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: "Marc Chantreux" <eiro@xxxxxxxxx>, "Zsh hackers list" <zsh-users@xxxxxxx>
- Subject: Re: what's the point of the precommand modifier - ?
- Date: Mon, 14 Sep 2020 06:46:19 +0000
- Archived-at: <https://zsh.org/users/26067>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-09/8184488e-0f0c-47dc-9fc2-c785f7c8ec31%40www.fastmail.com>
- Authentication-results: zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm3 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type; s=fm1; bh=esEzbv9 +BwWf7Y4GjbNmAyGf4AJfHIA4yoGQxzJY3/M=; b=KMUjX3M+LyrfdHgKOAYy1bk lhVNZ3jZuuJAd2baHqZ5Qa7gs0R8o/ss3RdDrFejfQHM50wKB8gV/f/yLpovJPGp kjvjI4FP/iqqma8uPeTZASIIe1ZMDNFCK2J5hyF8itg0gsxRsf0HXEau5o2a7Ajt i1B8sK/PwSZZ6LsiXZ0gME67Q75Bsg5rlQH9rsYxLvGi7eHVorJ39/beHrS4cN2b GFEYEFz8e68E3pFT+iQNb9O4xGiCpQUI49bjqfxmSDLpNyPPThg25frrFeV0BL4I KOrnt4c1WKTZ55r9trnYLLeUxifZEZo/xuURDFHdx9OrPv6M641akFRZ4LxUo2Q= =
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=esEzbv 9+BwWf7Y4GjbNmAyGf4AJfHIA4yoGQxzJY3/M=; b=oSsDcAl0XDKQUTMRBAKoYE au5hyQDuv0/0Q5YRTRgtrT7aDRQ7xSwGO1yAFXiVU9YZhM8YdZ7CsTxg4+1J+DT6 hxCEgOv1phtqStkYD2EzBK9hHwLE1/BQ1oInwnKG9SKEDiGvMzX0UrCX5pVVTO6h hEIHOoxCYbCvFqWg9cdcLu0TSlFZI39+ZzMV2bZfZkTWQB6CSJR2Qfd7FfD7NqDW hKSJJH9y+xAmQu1IRNNb6wPHpCcad/+4nAeYCsnLXlg6Qg9/veAb98+R6gFE8JG4 doAhuv5pIalT98M2AzCiqvD+bzQ+ixOhVMFWH7RnLaJZL+3dhlI5zhvT5M/vGZaA ==
- In-reply-to: <20200914061515.GA3324@prometheus.u-strasbg.fr>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <20200914061515.GA3324@prometheus.u-strasbg.fr>
- Sender: zsh-users-request@xxxxxxx
Marc Chantreux wrote on Mon, 14 Sep 2020 06:15 +00:00:
> hello,
>
> according to zshmisc(1):
>
> - The command is executed with a `-' prepended to its
> argv[0] string.
>
> ok ... but why is it useful?
Most shells check whether their argv[0] starts with a "-", and if that's
the case, they behave as login shells (as though -l was passed).
The effect can also be achieved with ARGV0; see zshparam(1).
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author