Current Path : /compat/linux/proc/self/root/usr/src/tools/regression/bin/sh/parser/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/src/tools/regression/bin/sh/parser/case2.0 |
# $FreeBSD: release/9.1.0/tools/regression/bin/sh/parser/case2.0 207824 2010-05-09 17:10:50Z jilles $ # Pretty much only ash derivatives can parse all of this. f1() { x=$(case x in (x|esac) ;; (*) echo bad >&2 ;; esac) } f1 f2() { x=$(case x in (x|esac) ;; (*) echo bad >&2 esac) } f2 f3() { x=$(case x in x|esac) ;; *) echo bad >&2 ;; esac) } f3 f4() { x=$(case x in x|esac) ;; *) echo bad >&2 esac) } f4