help / color / mirror / code / Atom feed
From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: andme <15991987063@163.com>
Cc: zsh-users <zsh-users@zsh.org>
Subject: Re: How to use precommand modifiers `-` ?
Date: Thu, 13 May 2021 13:04:04 +0200	[thread overview]
Message-ID: <CAN=4vMpXh-9Ja9tGJ_T8pgoX7Ehxm5FjNcqJW2AXZ2kOgHaX6A@mail.gmail.com> (raw)
In-Reply-To: <63c609c4.4d5f.17965205c4c.Coremail.15991987063@163.com>

On Thu, May 13, 2021 at 12:56 PM andme <15991987063@163.com> wrote:
> ```-
> The command is executed with a ‘-’ prepended to its argv[0] string.
> ```
> As a non-native speaker of English, I'm confused about this.
> Can anyone give me some examples?

Here's an example:

    % zsh -fc 'print -r -- $0'

    % - zsh -fc 'print -r -- $0'

Here $0 gives us argv[0].


  reply	other threads:[~2021-05-13 11:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-13  9:48 andme
2021-05-13 11:04 ` Roman Perepelitsa [this message]
2021-05-13 12:00   ` Vincent Bernat

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:

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

  git send-email \
    --in-reply-to='CAN=4vMpXh-9Ja9tGJ_T8pgoX7Ehxm5FjNcqJW2AXZ2kOgHaX6A@mail.gmail.com' \
    --to=roman.perepelitsa@gmail.com \
    --cc=15991987063@163.com \
    --cc=zsh-users@zsh.org \


* 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


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).