#!/bin/sh

test_description="Check that relative executable target through symlink is run"
. $SHARNESS_TEST_SRCDIR/sharness.sh
export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1

cat >foo.do <<EOF
#!/usr/bin/env perl
use strict;
EOF
chmod +x foo.do
mkdir -p a/b
ln -s a/b b
cd b
test_expect_success "succeeds" 'redo "$REDO_TOP_DIR"/foo'

test_done
