From: Alex Musolino <alex@musolino.id.au>
To: 9front@9front.org
Subject: Re: [9front] [PATCH] feat(grep): add -H flag
Date: Wed, 26 Jun 2024 23:19:56 +0930 [thread overview]
Message-ID: <B458772E9293F1F38DA5A9AFFE1664FB@musolino.id.au> (raw)
In-Reply-To: <t56mgjsckrql3abweyxecqphxkse2yoeg22uwiiliv5gulrqge@oehbxqrnatrw>
> That's exactly what I do now, but a flag gives me more confidence than a hack.
> Additionally, if combined with xargs, it can split the arguments leaving the
> last one alone, and in `g` I have no way to pass an extra argument, but I can
> pass a flag (`g -Hn w/e`). I hope I made myself clear.
>
Not really. It's not "a hack". It relies on the documented behaviour
of grep(1) and /dev/null so I don't know why you are lacking
confidence. I also don't know what you're getting at with xargs(1).
Lastly, g(1) already does this exact thing for you; no need to pass an
extra argument.
--
Cheers,
Alex Musolino
next prev parent reply other threads:[~2024-06-26 13:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-26 2:24 shurizzle
2024-06-26 4:56 ` Alex Musolino
2024-06-26 11:18 ` me
2024-06-26 13:49 ` Alex Musolino [this message]
2024-06-26 14:08 ` me
2024-06-26 16:31 ` Lyndon Nerenberg (VE7TFX/VE6BBM)
2024-06-26 16:35 ` Lyndon Nerenberg (VE7TFX/VE6BBM)
2024-06-27 20:11 ` Romano
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=B458772E9293F1F38DA5A9AFFE1664FB@musolino.id.au \
--to=alex@musolino.id.au \
--cc=9front@9front.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.
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).