util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
To: Nuno Silva <nunojsilva@ist.utl.pt>
Cc: util-linux@vger.kernel.org
Subject: Re: [PATCH] rename: change "expression" to "original"
Date: Sun, 22 Jun 2025 23:34:47 +0200	[thread overview]
Message-ID: <aFh298w6_1gLVs3a@cloudsdale.the-delta.net.eu.org> (raw)
In-Reply-To: <87cyawp26b.fsf@ist.utl.pt>

[2025-06-22 10:23:12+0100] Nuno Silva:
>(Resending via mail only because the mailing list post with Cc hit an
>issue with Gmane, but was successfully delivered to the list.)

Ack, CC'd back the mailing-list so trail isn't lost

>On 2025-06-22, Haelwenn (lanodan) Monnier wrote:
>
>> As rename(1) doesn't uses an expression (like regex or glob) but
>> rather a substring.
>[...]
>> -*rename* [options] _expression replacement file_...
>> +*rename* [options] _original replacement file_...
>[...]
>
>Oh. I was aware of there being at least two different "rename" utilities
>on Linux systems, this one from util-linux and a perl-based one using
>regexes, but I hadn't noticed this wording in the online manual and
>usage output.
>
>Yes, this change probably helps telling it apart from the perl-based
>rename.
>
>(I don't recall what made confusion more prone in the case of this
>utility, was it that some distributions installed the perl one as
>"rename"?)

I know FreeBSD rename(1) is the perl one, and it seems like Debian
changed perl rename from `rename` to `file-rename` in bookworm:
Before: https://packages.debian.org/bullseye/rename
After: https://packages.debian.org/bookworm/rename

And has util-linux rename as `rename.ul`: https://packages.debian.org/bookworm/amd64/util-linux/filelist

Best regards

  parent reply	other threads:[~2025-06-22 21:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-21 23:26 [PATCH] rename: change "expression" to "original" Haelwenn (lanodan) Monnier
2025-06-22  9:15 ` Nuno Silva
2025-06-22  9:49   ` Dirk Gouders
2025-06-22 10:36   ` Dirk Gouders
2025-06-22 15:51 ` Benno Schulenberg
2025-06-30 12:08   ` Karel Zak
2025-07-01 16:03     ` Haelwenn (lanodan) Monnier
     [not found] ` <87cyawp26b.fsf@ist.utl.pt>
2025-06-22 21:34   ` Haelwenn (lanodan) Monnier [this message]
2025-07-01 16:01 ` [PATCH v2] rename: change "expression" to "substring" Haelwenn (lanodan) Monnier
2025-07-02  8:03   ` Karel Zak

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=aFh298w6_1gLVs3a@cloudsdale.the-delta.net.eu.org \
    --to=contact@hacktivis.me \
    --cc=nunojsilva@ist.utl.pt \
    --cc=util-linux@vger.kernel.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).