Mercurial > emacs
comparison lib-src/rcs-checkin @ 9611:9e5812a795da
Use test -r instead of < to check readability, to avoid syntax error.
author | David J. MacKenzie <djm@gnu.org> |
---|---|
date | Wed, 19 Oct 1994 21:27:58 +0000 |
parents | aa19e3673b9f |
children | da322c027bf0 |
comparison
equal
deleted
inserted
replaced
9610:6c39fe6d9581 | 9611:9e5812a795da |
---|---|
42 esac | 42 esac |
43 # Ignore non-files too. | 43 # Ignore non-files too. |
44 test -f "$file" || continue | 44 test -f "$file" || continue |
45 | 45 |
46 # Check that file is readable. | 46 # Check that file is readable. |
47 <$file || exit | 47 test -r "$file" || exit |
48 | 48 |
49 # If the RCS file does not already exist, | 49 # If the RCS file does not already exist, |
50 # initialize it with a description from $file's first line. | 50 # initialize it with a description from $file's first line. |
51 rlog -R "$file" >/dev/null 2>&1 || | 51 rlog -R "$file" >/dev/null 2>&1 || |
52 rcs -i -q -t-"`sed 1q $file`" "$file" || exit | 52 rcs -i -q -t-"`sed 1q $file`" "$file" || exit |