From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Re: Странный xargs
Date: Wed, 2 Feb 2005 14:18:32 +0300
Message-ID: <20050202111832.GB16007@basalt.office.altlinux.org> (raw)
In-Reply-To: <20050202104801.94A6D664392@antex.ru>
[-- Attachment #1: Type: text/plain, Size: 747 bytes --]
Hi,
On Wed, Feb 02, 2005 at 01:48:01PM +0300, Sergey Pinaev wrote:
> On Wed, 02 Feb 2005 13:38:25 +0300, Anton Farygin wrote:
>
> >> Вот смотрите:
> >> [rider@rider rider]$ echo TEST | xargs -i{} echo '{}'
> >> TEST
> >> [rider@rider rider]$ echo TEST | xargs echo '{}'
> >> {} TEST
> >>
> >> Есть разница ?
> >>
> >> Хотя в теории поведение должно быть одинаковое.
>
> с чего вдруг?
>
> AF> Кстати, там явная багофича в xargs: дефолтный pattern выставляется
> AF> только при наличии опции -i
>
> а с чего бы там быть какому-то "дефолтному patternу", если -i не
> сказано?
Сергей прав, понятие шаблона имеет смысл только в операции подстановки.
Внимательно читайте документацию до полного прояснения.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-02-02 11:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-01 23:22 [devel] " Vitaly Lipatov
2005-02-02 6:44 ` [devel] " Michael Shigorin
2005-02-02 10:00 ` Vitaly Lipatov
2005-02-02 10:33 ` Anton Farygin
2005-02-02 10:38 ` Anton Farygin
2005-02-02 10:48 ` Sergey Pinaev
2005-02-02 11:18 ` Dmitry V. Levin [this message]
2005-02-02 21:28 ` Vitaly Lipatov
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=20050202111832.GB16007@basalt.office.altlinux.org \
--to=ldv@altlinux.org \
--cc=devel@altlinux.ru \
/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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git