urchin/tests/Internals/has_shebang_line
2016-03-31 19:10:31 +00:00

21 lines
281 B
Plaintext
Executable File

TESTING_URCHIN_INTERNALS=true . ../../urchin
echo '!#/bin/sh' > $tmp
! has_shebang_line $tmp
echo '!#/bin/bash' > $tmp
has_shebang_line $tmp
echo '!#/usr/bin/env true' > $tmp
has_shebang_line $tmp
echo > $tmp
! has_shebang_line $tmp
echo '
' > $tmp
! has_shebang_line $tmp