Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/shell/hush_test/hush-misc/case1.tests

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 23  case `echo w w` in a) echo SKIP;; w) ech Line 23  case `echo w w` in a) echo SKIP;; w) ech
23    
24  case w in `echo w`) echo OK_51;; `echo WRONG >&2`w) echo WRONG;; esac;  case w in `echo w`) echo OK_51;; `echo WRONG >&2`w) echo WRONG;; esac;
25  case w in `echo OK_52 >&2`) echo SKIP;; `echo`w) echo OK_53;; esac;  case w in `echo OK_52 >&2`) echo SKIP;; `echo`w) echo OK_53;; esac;
26    
27    # parsing cases in subshells can easily get messy
28     case m in  m) echo OK_sub1;; esac
29     case m in (m) echo OK_sub2;; esac
30    (case m in  m) echo OK_sub3;; esac)
31    (case m in (m) echo OK_sub4;; esac)
32    (
33     case m in  m) echo OK_sub5;; esac
34    )
35    (
36     case m in (m) echo OK_sub6;; esac
37    )
38    (case esac in "esac") echo OK_esac1;; esac)
39    
40    echo Done

Legend:
Removed from v.983  
changed lines
  Added in v.984