Changeset 2589


Ignore:
Timestamp:
Mar 9, 2006, 2:36:17 AM (19 years ago)
Author:
bird
Message:

use iso time for ls. delete \r.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coreutils/tests/mv/part-symlink

    r2554 r2589  
    9898          # and put brackets around the output.
    9999          test -s .err && {
    100             echo '[' | tr -d '\n'
     100            echo '[' | tr -d '\r\n' # bird
    101101            sed 's/^[^:][^:]*\(..\):/\1:/;s,'$other_partition_tmpdir/,, .err
    102             echo ']' | tr -d '\n'
     102            echo ']' | tr -d '\r\n' # bird
    103103            }
    104104          # Strip off all but the file names.
    105105          # Remove any site-dependent part of each file name.
    106           ls="`ls -gG --ignore=.err . \
     106          ls="`ls -gG  --time-style=iso --ignore=.err . \
    107107              | sed \
    108108                  -e '/^total /d' \
    109109                  -e s,$other_partition_tmpdir/,, \
    110110                  -e s,$pwd_tmp/,, \
    111                   -e 's/^[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *//'`"
    112           ls2="`cd $other_partition_tmpdir && ls -gG --ignore=.err . \
     111                  -e 's/^[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *//'`" # bird: iso time - one word less
     112          ls2="`cd $other_partition_tmpdir && ls -gG --time-style=iso --ignore=.err . \
    113113              | sed \
    114114                  -e '/^total /d' \
    115115                  -e s,$other_partition_tmpdir/,, \
    116116                  -e s,$pwd_tmp/,, \
    117                   -e 's/^[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *//'`"
     117                  -e 's/^[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *//'`" # bird: iso time
    118118          echo "($ls) ($ls2)"
    119119
     
    147147            done
    148148          fi
    149         ) | tr '\n' ' '
     149        ) | tr '\n' ' ' | tr -d '\r' # bird
    150150        echo
    151151      ) | sed 's/  *$//'
Note: See TracChangeset for help on using the changeset viewer.