test: 50-redirect-sed.sh

This commit is contained in:
Jan Nieuwenhuizen 2018-11-30 14:17:46 +01:00
parent 298238e8e6
commit 8f12c6a562
4 changed files with 12 additions and 0 deletions

View File

@ -92,6 +92,7 @@ tests='
50-redirect-append
50-redirect-pipe
50-redirect-merge
50-redirect-sed
60-function
60-subst

5
test/50-redirect-sed.sh Normal file
View File

@ -0,0 +1,5 @@
sed \
-e "s,^#! /bin/sh,#! /bin/gash," \
test/data/diff.scm > $DESTDIR/tmp/diff.scm
cat $DESTDIR/tmp/diff.scm
rm $DESTDIR/tmp/diff.scm

View File

@ -0,0 +1,3 @@
#! /bin/gash
!#

3
test/data/diff.scm Normal file
View File

@ -0,0 +1,3 @@
#! /bin/sh
!#