darcs

Message5190

Author twb
Recipients beschmi, dagit, droundy, jaredj, kowey, tommy, tux_rocker, twb
Date 2008-07-05.12:23:12
Issue Issue538 wish: trackdown --set-scripts-executable
Content
| Mon Jun  2 21:21:55 EST 2008  David Roundy <droundy@darcs.net>
|   * skip issue538.sh on windows, since I don't know how to run tests
|   since ./test.sh isn't accepted on windows.
|     hunk ./tests/issue538.sh 7
|     +if echo $OS | grep -i windows; then
|     +    echo I do not know how to run a test program under windows
|     +    exit 0
|     +fi
|     +

Since you already seem to be using unix commands (grep), perhaps you
could use stat(1) or find(1), both of which can examine the
executability (i.e. mode, on Unix) of files, e.g.

$ touch x y
$ chmod +x x
$ stat -c %a\ %A\ %n x y
755 -rwxr-xr-x x
644 -rw-r--r-- y
$ find -executable -type f
./x
$
History
Date User Action Args
2008-07-05 12:23:13twbcreate
2008-07-05 12:23:17twblinkissue538 messages
2008-07-05 12:23:17twbsetrecipients: + twb, tommy, beschmi, kowey, dagit, trentbuck, jaredj, tux_rocker
2008-09-25 06:25:22adminsetrecipients: - trentbuck