logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: 175295c6b53ee6d7ea1aea5c9e69d74f62523a28
parent fb19516f44850e5219c3dfe0bf19b5150d34f857
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 15 Nov 2024 17:56:54 +0100

test-cmd/mv.t: Update for 6eff20f7c6043602f65be89ae05061da48756fa0

Diffstat:

Mtest-cmd/mv.t16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/test-cmd/mv.t b/test-cmd/mv.t @@ -22,15 +22,15 @@ POSIX mv(1) step 1a, no -f option, no -i option $ mkdir -m -w 1a_no-f_no-write $ touch src $ printf '\n' | mv src 1a_no-f_no-write/dest - mv: error: Failed moving 'src' to './1a_no-f_no-write/dest': Permission denied + mv: error: Failed moving 'src' to '1a_no-f_no-write/dest': Permission denied [1] $ test -e src $ printf 'n\n' | mv src 1a_no-f_no-write/dest - mv: error: Failed moving 'src' to './1a_no-f_no-write/dest': Permission denied + mv: error: Failed moving 'src' to '1a_no-f_no-write/dest': Permission denied [1] $ test -e src $ printf 'y\n' | mv src 1a_no-f_no-write/dest - mv: error: Failed moving 'src' to './1a_no-f_no-write/dest': Permission denied + mv: error: Failed moving 'src' to '1a_no-f_no-write/dest': Permission denied [1] $ test ! -e src [1] @@ -40,16 +40,16 @@ POSIX mv(1) step 1b, no -f option, -i passed $ mkdir 1a_no-f_write $ touch src 1a_no-f_write/dest $ printf '\n' | mv -i src 1a_no-f_write/dest - mv: Destination file './1a_no-f_write/dest' already exists, overwrite? [yN] + mv: Destination file '1a_no-f_write/dest' already exists, overwrite? [yN] mv: Got empty response, considering it false $ test -e src $ test -d 1a_no-f_write $ printf 'n\n' | mv -i src 1a_no-f_write/dest - mv: Destination file './1a_no-f_write/dest' already exists, overwrite? [yN] n + mv: Destination file '1a_no-f_write/dest' already exists, overwrite? [yN] n $ test -f src $ test -d 1a_no-f_write $ printf 'y\n' | mv -i src 1a_no-f_write/dest - mv: Destination file './1a_no-f_write/dest' already exists, overwrite? [yN] y + mv: Destination file '1a_no-f_write/dest' already exists, overwrite? [yN] y $ test ! -e src $ test -d 1a_no-f_write $ rm -fr 1a_no-f_write @@ -108,7 +108,7 @@ Where destination is an existing file $ touch foo_file_i destfile_i $ printf 'y\n' | mv -i foo_file_i destfile_i - mv: Destination file './destfile_i' already exists, overwrite? [yN] y + mv: Destination file 'destfile_i' already exists, overwrite? [yN] y $ test ! -e foo_file_i $ test -f destfile_i $ rm destfile_i @@ -124,7 +124,7 @@ Where destination is an existing file Verbose (non-standard) $ touch foo $ mv -v foo bar - mv: renamed 'foo' -> './bar' + mv: renamed 'foo' -> 'bar' $ test ! -e foo $ test -e bar $ rm bar