aboutsummaryrefslogtreecommitdiff
blob: 54b81784cbbca4511f657fc2cafdf3d7111b6478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

declare -i error=0
result=$(mktemp)

for script in $@
do
    srcdir=$srcdir ./bash $script > $result 2>&1
    srcdir=$srcdir bash +O cmdhist \
                        +O force_fignore \
                        +O hostcomplete \
                        +O interactive_comments \
                        +O progcomp \
                        +O promptvars \
                        +O sourcepath \
                        $script | diff -u $result -
    error+=$?
done

rm -rf $result
exit $error