length is less than 9 in ls output: instead, omit that field
altogether. Reported by, and suggested fix from, Ferdinand.
# and put brackets around the output.
test -s _err && echo "[`sed 's/^[^:][^:]*:/cp:/' _err`]"
# Strip off all but the file names.
- ls="`ls -lG --ignore=_err . \
+ ls="`ls -lgG --ignore=_err . \
| sed \
-e '/^total /d' \
- -e 's/^...............................................//'`"
+ -e 's/^......................................//'`"
echo "($ls)"
# Make sure the original is unchanged and that
# the destination is a copy.