On Sun, Oct 12, 2008 at 16:08:06 +0200, Matthias Kilian wrote:
> $ mkdir -p /tmp/foo/bar
> $ chmod 111 /tmp/foo
> $ cd /tmp/foo/bar
> $ /bin/pwd
> pwd: getcwd: Permission denied

Hmm... so we have this if-then-else block to skip this test as needed

  # TODO: we avoid this test on Solaris because it seems we can't create
  # anything in tmp_restrictive/liberal
  touch can_touch
  if [ -e can_touch ]; then
    darcs get $DIR/tmp_remote 2> log
    not grep -i 'permission denied' log
  else
    echo "Can't do `basename $0` on this platform"
  fi
  
Would modifying the test to something like

  if pwd; then
    darcs get $DIR/tmp_remote 2> log
    not grep -i 'permission denied' log
  else
    echo "Can't do `basename $0` on this platform"
  fi

do what we want?
 
-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9

Attachment: pgpTPmYjqIhOg.pgp
Description: PGP signature

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to