9front - general discussion about 9front
 help / color / mirror / Atom feed
From: me@shurizzle.dev
To: 9front@9front.org
Subject: Re: [9front] [PATCH] feat(grep): add -H flag
Date: Wed, 26 Jun 2024 11:18:37 +0000	[thread overview]
Message-ID: <t56mgjsckrql3abweyxecqphxkse2yoeg22uwiiliv5gulrqge@oehbxqrnatrw> (raw)
In-Reply-To: <7A35DAAE2FF03AD0EA15B02CC5EC9366@musolino.id.au>

On 24/06/26 02:26PM, Alex Musolino wrote:
> > -H is the opposite of -h.
> > When present, print the file name even if only one file is
> > passed in the parameters.
>
> Seems unnecessary.  You can already get this behaviour by passing
> /dev/null as an extra file argument.
>
> --
> Cheers,
> Alex Musolino
>

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.


  reply	other threads:[~2024-06-26 11:19 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 [this message]
2024-06-26 13:49     ` Alex Musolino
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=t56mgjsckrql3abweyxecqphxkse2yoeg22uwiiliv5gulrqge@oehbxqrnatrw \
    --to=me@shurizzle.dev \
    --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).