summaryrefslogtreecommitdiffstats
path: root/tests/functions.sh
diff options
context:
space:
mode:
authorSami Kerola2014-05-25 23:17:25 +0200
committerSami Kerola2014-07-18 19:34:14 +0200
commitbd9ced628bb8621babc1d677669c14277845745d (patch)
tree215440d3bfda455c117b3e9b116ac7c6fff91446 /tests/functions.sh
parentprlimit: clean up columns[] usage (diff)
downloadkernel-qcow2-util-linux-bd9ced628bb8621babc1d677669c14277845745d.tar.gz
kernel-qcow2-util-linux-bd9ced628bb8621babc1d677669c14277845745d.tar.xz
kernel-qcow2-util-linux-bd9ced628bb8621babc1d677669c14277845745d.zip
rename: allow renaming in subdirectories
Earlier the rename(1) considered path as possible string to be renamed, could lead to an issue with none existing destination. See below for demonstration of this issue. After this change all directory elements are ignored when the match finding happens. $ cd $(mktemp -d) $ mkdir aa ab $ touch a{a,b}/aa $ rename -v a x */aa rename: aa/aa: rename to xa/aa failed: No such file or directory Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/functions.sh')
0 files changed, 0 insertions, 0 deletions