| 1 |
stdin input.sh |
| 2 |
! exec shfmt -d |
| 3 |
cmp stdout input.sh.stdindiff |
| 4 |
! stderr . |
| 5 |
|
| 6 |
stdin input.sh |
| 7 |
! exec shfmt --diff |
| 8 |
cmp stdout input.sh.stdindiff |
| 9 |
! stderr . |
| 10 |
|
| 11 |
! exec shfmt -d input.sh |
| 12 |
cmp stdout input.sh.filediff |
| 13 |
! stderr . |
| 14 |
|
| 15 |
! exec shfmt -d input.sh input.sh |
| 16 |
stdout -count=4 'input.sh.orig' |
| 17 |
|
| 18 |
env FORCE_COLOR=true |
| 19 |
stdin input.sh |
| 20 |
! exec shfmt -d |
| 21 |
stdout '\x1b\[31m- foo' |
| 22 |
! stderr . |
| 23 |
env FORCE_COLOR= |
| 24 |
|
| 25 |
! exec shfmt -d . |
| 26 |
cmp stdout input.sh.filediff |
| 27 |
! stderr . |
| 28 |
|
| 29 |
-- input.sh -- |
| 30 |
foo |
| 31 |
|
| 32 |
|
| 33 |
bar |
| 34 |
-- input.sh.golden -- |
| 35 |
foo |
| 36 |
|
| 37 |
bar |
| 38 |
-- input.sh.stdindiff -- |
| 39 |
diff <standard input>.orig <standard input> |
| 40 |
--- <standard input>.orig |
| 41 |
+++ <standard input> |
| 42 |
@@ -1,4 +1,3 @@ |
| 43 |
- foo |
| 44 |
- |
| 45 |
+foo |
| 46 |
|
| 47 |
bar |
| 48 |
-- input.sh.filediff -- |
| 49 |
diff input.sh.orig input.sh |
| 50 |
--- input.sh.orig |
| 51 |
+++ input.sh |
| 52 |
@@ -1,4 +1,3 @@ |
| 53 |
- foo |
| 54 |
- |
| 55 |
+foo |
| 56 |
|
| 57 |
bar |