#!/bin/sh
ln -s foo bar || exit 1
(test -L bar  || test -h bar) 2>/dev/null || exit 1
rm bar || exit 1
