author | wenzelm |
Sun, 29 Nov 2009 17:23:39 +0100 | |
changeset 33920 | d4d430dfabc6 |
parent 33919 | 3711139cffc3 |
child 33921 | 4c188a74e362 |
--- a/bin/isabelle-process Sun Nov 29 17:14:24 2009 +0100 +++ b/bin/isabelle-process Sun Nov 29 17:23:39 2009 +0100 @@ -181,7 +181,9 @@ case "$OUTPUT" in "") - [ -z "$READONLY" -a -w "$INFILE" ] && OUTFILE="$INFILE" + if [ -z "$READONLY" -a -w "$INFILE" ]; then + perl -e "exit (((stat('$INFILE'))[2] & 0222) != 0 ? 0 : 1);" && OUTFILE="$INFILE" + fi ;; */*) OUTFILE="$OUTPUT"