]> git.ipfire.org Git - thirdparty/util-linux.git/commit
`rename -s` treats paths the same as without `-s`.
authorPhilip Hazelden <philip.hazelden@gmail.com>
Tue, 3 Jan 2023 19:43:28 +0000 (19:43 +0000)
committerPhilip Hazelden <philip.hazelden@gmail.com>
Tue, 3 Jan 2023 19:43:28 +0000 (19:43 +0000)
commitfa7abf332fed6e89535c00b97ca165eb135db588
treeb613ae1460f79bae20b80796f0f053449299a7ef
parente05ab331d48963c233ad5ba870dbc8d2c970145b
`rename -s` treats paths the same as without `-s`.

That is, it only updates the final path component, unless either the
expression or the replacement contains a '/'.

As discussed in #1962.
misc-utils/rename.1.adoc
misc-utils/rename.c
tests/expected/rename/subdir
tests/ts/rename/subdir