changeset 33920 | d4d430dfabc6 |
parent 32390 | 468eff174a77 |
child 34109 | f49d45afa634 |
--- 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"