From: Jim Meyering Date: Sat, 21 Feb 1998 11:04:07 +0000 (+0000) Subject: . X-Git-Tag: FILEUTILS-3_16m~27 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=5bf77e10157d73770220be6bd2a2f3bc4ba5e3c9;p=thirdparty%2Fcoreutils.git . --- diff --git a/tests/mv/TODO b/tests/mv/TODO new file mode 100644 index 0000000000..9cf9bfbce3 --- /dev/null +++ b/tests/mv/TODO @@ -0,0 +1,27 @@ +Use df to find a writable directory on a file system different from current one: + +# Try these: +tmp_dirs=' + $TMPDIR + /tmp + /var/tmp + /usr/tmp + $HOME +' + +# FIXME +DF=df +# FIXME +MKDIR=mkdir + +tmp=df-$$ + +dot_mount_point=`$DF --no-sync -P . | sed -n '2s/.*% *//p'` +for d in $tmp_dirs; do + d_mount_point=`$DF --no-sync -P $d | sed -n '2s/.*% *//p'` + + # Same partition? Skip it. + test x$d_mount_point = x$dot_mount_point && continue + + # See if we can create a directory in it. +done