2 # cp -r should not create symlinks. Fixed in fileutils-4.1.5.
3 # Restored old behavior (whereby cp -r preserves symlinks) in 4.1.6,
4 # though now such usage evokes a warning:
5 # cp: `slink': WARNING: using -r to copy symbolic links is not portable
7 if test "$VERBOSE" = yes; then
12 . $srcdir/../envvar-check
16 trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
17 trap '(exit $?); exit' 1 2 13 15
20 mkdir $tmp || framework_failure=1
21 cd $tmp || framework_failure=1
22 echo abc > foo || framework_failure=1
23 ln -s foo slink || framework_failure=1
24 ln -s no-such-file no-file || framework_failure=1
26 if test $framework_failure = 1; then
27 echo '$0: failure in testing framework' 1>&2
33 # This would fail in 4.1.5, not in 4.1.6.
34 cp -r no-file junk 2>/dev/null || fail=1
36 cp -r slink bar 2>/dev/null || fail=1
37 set x `ls -l bar`; shift; mode=$1