~emersion/mrsh-dev

1

[PATCH 1/2] add test for ub when processing args

Details
Message ID
<20200203213614.20891-1-lattis@mochiro.moe>
DKIM signature
missing
Download raw message
Patch: +7 -0
---
 args.sh          | 6 ++++++
 test/meson.build | 1 +
 2 files changed, 7 insertions(+)
 create mode 100644 args.sh

diff --git a/args.sh b/args.sh
new file mode 100644
index 0000000..a314dfd
--- /dev/null
+++ b/args.sh
@@ -0,0 +1,6 @@
func() { getopts "abcd" opt; }

func
func -a
func -ab
func -abc
diff --git a/test/meson.build b/test/meson.build
index b58720a..0bfde71 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -4,6 +4,7 @@ ref_sh = find_program(get_option('reference-shell'), required: false)
test_files = [
	'conformance/if.sh',

	'args.sh',
	'arithm.sh',
	'async.sh',
	'case.sh',
-- 
2.24.1
Details
Message ID
<20200203213938.jyxb2hh4erfkzvub@aoi>
In-Reply-To
<20200203213614.20891-1-lattis@mochiro.moe> (view parent)
DKIM signature
missing
Download raw message
Please disregard this patch, I'm still figuring out git send-email.