Changeset 1be8507 in lab.git


Ignore:
Timestamp:
Oct 4, 2012 6:52:12 PM (12 years ago)
Author:
mitty <mitty@…>
Branches:
master, trunk
Children:
0dcad9a
Parents:
22a2ffd
Message:
  • #55
  • fix: when dir1/target and dir2/target both exist but file type differ, only output dir1 and dir2 (drop ./target information)

git-svn-id: https://lab.mitty.jp/svn/lab/trunk@172 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TipAndDoc/.bin/cmpdir

    r22a2ffd r1be8507  
    1515        echo "Only in '$2': '$3'" >&2 && exit 
    1616    [ -f "$1/$3" ] && [ -d "$2/$3" ] && 
    17         echo "'$1' is a regular file but '$2' is a directory" >&2 && exit 
     17        echo "'$1/$3' is a regular file but '$2/$3' is a directory" >&2 && exit 
    1818    [ -d "$1/$3" ] && [ -f "$2/$3" ] && 
    19         echo "'$1' is a directory but '$2' is a regular file" >&2 && exit 
     19        echo "'$1/$3' is a directory but '$2/$3' is a regular file" >&2 && exit 
    2020     
    2121    cmp -s "$1/$3" "$2/$3" || echo "$1/$3" "$2/$3" are differ >&2 
Note: See TracChangeset for help on using the changeset viewer.