From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: etags not working properly
Date: Wed, 28 Aug 2013 17:48:10 +0300 [thread overview]
Message-ID: <8361upg9cl.fsf@gnu.org> (raw)
In-Reply-To: <CAKoxK+6YwUOJKMqi=knxvYZO5RraJcoUiP5vEEbwpmVYqPwUug@mail.gmail.com>
> Date: Wed, 28 Aug 2013 08:44:07 +0200
> From: Luca Ferrari <fluca1978@infinito.it>
> Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
>
> On Tue, Aug 27, 2013 at 5:14 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> > cd /usr/src && find . -name '*.[ch]' | etags -
>
>
> Seems to work, at least against the faulty examples I found before.
> What is the difference of using the stdin instead of piping via xargs?
The main difference is that when you do this via xargs, etags might be
invoked more than once (if the list of the files is long enough),
which will cause the 2nd, 3rd, etc. invocations to overwrite the
output file of the previous one. So with xargs you need to use the -a
switch to etags, which you didn't. As result, you probably got a
partial TAGS file: the one from the last invocation of etags by xargs.
However, since etags accepts the - argument, and then reads the file
names from its stdin, there's no reason to use xargs at all, so
getting rid of that kills two birds: no need for the -a complication,
and getting rid of xargs makes the command slightly faster -- a nice
bonus.
prev parent reply other threads:[~2013-08-28 14:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-27 6:46 etags not working properly Luca Ferrari
2013-08-27 15:14 ` Eli Zaretskii
2013-08-28 6:44 ` Luca Ferrari
2013-08-28 14:48 ` Eli Zaretskii [this message]
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=8361upg9cl.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.