aboutsummaryrefslogtreecommitdiffstats
path: root/src/parse/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/test.rs')
-rw-r--r--src/parse/test.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/parse/test.rs b/src/parse/test.rs
index 3513c3f..3058730 100644
--- a/src/parse/test.rs
+++ b/src/parse/test.rs
@@ -321,3 +321,11 @@ fn exit_code_2() {
pipes([cmd([estr(b"echo"), str([var(b"?")])])])
)
}
+
+#[test]
+fn dollar_non_var() {
+ parse_test!(
+ parse(b"echo $_"),
+ pipes([cmd([estr(b"echo"), estr(b"$_")]),])
+ )
+}