From 0e093988bf7fc104726edff28a1a41faf18a47b6 Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Mon, 31 Mar 2014 12:47:09 -0700 Subject: [PATCH] beam/examples/beamsh: add scripts to reproduce various bugs Docker-DCO-1.1-Signed-off-by: Solomon Hykes (github: shykes) --- beam/examples/beamsh/bug0.ds | 3 +++ beam/examples/beamsh/bug1.ds | 5 +++++ beam/examples/beamsh/bug2.ds | 7 +++++++ beam/examples/beamsh/bug3.ds | 10 ++++++++++ beam/examples/beamsh/bug4.ds | 9 +++++++++ beam/examples/beamsh/bug5.ds | 6 ++++++ beam/examples/beamsh/bug6.ds | 7 +++++++ beam/examples/beamsh/bug7.ds | 6 ++++++ 8 files changed, 53 insertions(+) create mode 100755 beam/examples/beamsh/bug0.ds create mode 100755 beam/examples/beamsh/bug1.ds create mode 100755 beam/examples/beamsh/bug2.ds create mode 100755 beam/examples/beamsh/bug3.ds create mode 100755 beam/examples/beamsh/bug4.ds create mode 100755 beam/examples/beamsh/bug5.ds create mode 100755 beam/examples/beamsh/bug6.ds create mode 100755 beam/examples/beamsh/bug7.ds diff --git a/beam/examples/beamsh/bug0.ds b/beam/examples/beamsh/bug0.ds new file mode 100755 index 0000000..89b7523 --- /dev/null +++ b/beam/examples/beamsh/bug0.ds @@ -0,0 +1,3 @@ +#!/usr/bin/env beamsh + +exec ls -l diff --git a/beam/examples/beamsh/bug1.ds b/beam/examples/beamsh/bug1.ds new file mode 100755 index 0000000..2d8a9e2 --- /dev/null +++ b/beam/examples/beamsh/bug1.ds @@ -0,0 +1,5 @@ +#!/usr/bin/env beamsh + +trace { + exec ls -l +} diff --git a/beam/examples/beamsh/bug2.ds b/beam/examples/beamsh/bug2.ds new file mode 100755 index 0000000..08f0431 --- /dev/null +++ b/beam/examples/beamsh/bug2.ds @@ -0,0 +1,7 @@ +#!/usr/bin/env beamsh + +trace { + stdio { + exec ls -l + } +} diff --git a/beam/examples/beamsh/bug3.ds b/beam/examples/beamsh/bug3.ds new file mode 100755 index 0000000..7bb8694 --- /dev/null +++ b/beam/examples/beamsh/bug3.ds @@ -0,0 +1,10 @@ +#!/usr/bin/env beamsh -x + +trace outer { + # stdio fails + stdio { + trace inner { + exec ls -l + } + } +} diff --git a/beam/examples/beamsh/bug4.ds b/beam/examples/beamsh/bug4.ds new file mode 100755 index 0000000..b7beedb --- /dev/null +++ b/beam/examples/beamsh/bug4.ds @@ -0,0 +1,9 @@ +#!/usr/bin/env beamsh + +stdio { + trace { + stdio { + exec ls -l + } + } +} diff --git a/beam/examples/beamsh/bug5.ds b/beam/examples/beamsh/bug5.ds new file mode 100755 index 0000000..9f9a855 --- /dev/null +++ b/beam/examples/beamsh/bug5.ds @@ -0,0 +1,6 @@ +#!/usr/bin/env beamsh + +stdio { + # exec fails + exec ls -l +} diff --git a/beam/examples/beamsh/bug6.ds b/beam/examples/beamsh/bug6.ds new file mode 100755 index 0000000..9028140 --- /dev/null +++ b/beam/examples/beamsh/bug6.ds @@ -0,0 +1,7 @@ +#!/usr/bin/env beamsh + +stdio { + trace { + echo hello + } +} diff --git a/beam/examples/beamsh/bug7.ds b/beam/examples/beamsh/bug7.ds new file mode 100755 index 0000000..b6e7bd9 --- /dev/null +++ b/beam/examples/beamsh/bug7.ds @@ -0,0 +1,6 @@ +#!/usr/bin/env beamsh + +stdio { + # exec fails + echo hello world +}