#!/bin/sh

test_description="Check that dashed targets are not treated as options"
. $SHARNESS_TEST_SRCDIR/sharness.sh
export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1

echo echo \$1 >default.do
redo -- ok
test_expect_success "redo skips dashes" '[ ! -e ./-- ]'
test_expect_success "redo mades ok" '[ -s ok ]'

echo "redo-ifchange -- ok" >foo.do
rm ok
redo foo
test_expect_success "dashes made" '[ -s ./-- ]'
test_expect_success "ok is also made" '[ -e ok ]'

test_done
