Mercurial > hg
annotate tests/test-execute-bit @ 5494:7ceb740f2fef
See if execute bit is honoured when we go back in time
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 26 Oct 2007 16:43:13 -0700 |
parents | |
children | 363ba35f55bd |
rev | line source |
---|---|
5494
7ceb740f2fef
See if execute bit is honoured when we go back in time
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
1 #!/bin/sh |
7ceb740f2fef
See if execute bit is honoured when we go back in time
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
2 |
7ceb740f2fef
See if execute bit is honoured when we go back in time
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
3 hg init |
7ceb740f2fef
See if execute bit is honoured when we go back in time
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
4 echo a > a |
7ceb740f2fef
See if execute bit is honoured when we go back in time
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
5 hg ci -d'0 0' -Am'not executable' |
7ceb740f2fef
See if execute bit is honoured when we go back in time
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
6 |
7ceb740f2fef
See if execute bit is honoured when we go back in time
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
7 chmod +x a |
7ceb740f2fef
See if execute bit is honoured when we go back in time
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
8 hg ci -d'1 0' -m'executable' |
7ceb740f2fef
See if execute bit is honoured when we go back in time
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
9 hg id |
7ceb740f2fef
See if execute bit is honoured when we go back in time
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
10 |
7ceb740f2fef
See if execute bit is honoured when we go back in time
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
11 hg up 0 |
7ceb740f2fef
See if execute bit is honoured when we go back in time
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
12 hg id |
7ceb740f2fef
See if execute bit is honoured when we go back in time
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
13 test -x a && echo executable -- eek || echo not executable -- whew |