aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/xmlsh.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/xmlsh.rb b/Library/Formula/xmlsh.rb
index efdd4fbf3..935b44e14 100644
--- a/Library/Formula/xmlsh.rb
+++ b/Library/Formula/xmlsh.rb
@@ -15,4 +15,10 @@ class Xmlsh < Formula
exec #{libexec}/unix/xmlsh "$@"
EOS
end
+
+ test do
+ out = `#{bin}/xmlsh -c 'x=<[<foo bar="baz" />]> && echo <[$x/@bar]>'`
+ assert_equal "baz\n", out
+ assert_equal 0, $?.exitstatus
+ end
end