[MacPorts] #70186: util-linux @2.40.1: `rename` doesn't preserve original file name parts (was: `rename` doesn't preserve original file name parts)
MacPorts
noreply at macports.org
Fri Jun 7 19:43:09 UTC 2024
#70186: util-linux @2.40.1: `rename` doesn't preserve original file name parts
-------------------------+----------------------------
Reporter: Bachsau | Owner: kurthindenburg
Type: defect | Status: assigned
Priority: High | Milestone:
Component: ports | Version: 2.9.3
Resolution: | Keywords:
Port: util-linux |
-------------------------+----------------------------
Changes (by ryandesign):
* status: new => assigned
* owner: (none) => kurthindenburg
Comment:
The selectable version in the issue template is the MacPorts version, not
the port version (which goes in the summary along with the port name).
Just to make sure, I tried an example from the `rename` manpage:
> {{{
> rename .htm .html *.htm
> }}}
> will fix the extension of your html files.
{{{
% port -v installed util-linux
The following ports are currently installed:
util-linux @2.40.1_0 (active) requested_variants='' platform='darwin 21'
archs='x86_64' date='2024-05-15T02:37:30-0500'
% mkdir test
% cd test
% touch foo.htm bar.htm
% ls -la
total 0
drwxr-xr-x 4 rschmidt wheel 128 Jun 7 14:39 .
drwxrwxrwt 42 root wheel 1344 Jun 7 14:38 ..
-rw-r--r-- 1 rschmidt wheel 0 Jun 7 14:39 bar.htm
-rw-r--r-- 1 rschmidt wheel 0 Jun 7 14:39 foo.htm
% rename -v .htm .html *.htm
`bar.htm' -> `.html'
`foo.htm' -> `.html'
% ls -la
total 0
drwxr-xr-x 3 rschmidt wheel 96 Jun 7 14:39 .
drwxrwxrwt 42 root wheel 1344 Jun 7 14:38 ..
-rw-r--r-- 1 rschmidt wheel 0 Jun 7 14:39 .html
%
}}}
Here is the upstream issue: https://github.com/util-linux/util-
linux/issues/3071
--
Ticket URL: <https://trac.macports.org/ticket/70186#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list