← Commit list

7b424fe73

Mike Frysinger
Mike Frysinger
2009-05-21
FAILED Duration: 31s

Subject

hush_test: add subshelled case tests

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/hush_test/hush-misc/case1.tests+12 -0
@@ -23,3 +23,15 @@ case `echo w w` in a) echo SKIP;; w) echo WRONG;; w*) echo OK_44;; esac;
case w in `echo w`) echo OK_51;; `echo WRONG >&2`w) echo WRONG;; esac;
case w in `echo OK_52 >&2`) echo SKIP;; `echo`w) echo OK_53;; esac;
+
+# parsing cases in subshells can easily get messy
+ case m in m) echo ok-sub1;; esac
+ case m in (m) echo ok-sub2;; esac
+(case m in m) echo ok-sub3;; esac)
+(case m in (m) echo ok-sub4;; esac)
+(
+ case m in m) echo ok-sub5;; esac
+)
+(
+ case m in (m) echo ok-sub6;; esac
+)