mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 23:42:59 +00:00
split_shell: use @example
This commit is contained in:
parent
1677c68a7b
commit
a06136812f
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ end
|
||||||
-- - Unclosed quotes are treated as lasting until the end of the string.
|
-- - Unclosed quotes are treated as lasting until the end of the string.
|
||||||
-- - Empty arguments (i.e., consecutive whitespaces) are ignored.
|
-- - Empty arguments (i.e., consecutive whitespaces) are ignored.
|
||||||
--
|
--
|
||||||
-- Examples:
|
-- @example Different sample inputs / output pairs
|
||||||
-- split_shell("arg1 arg2 arg3") --> {"arg1", "arg2", "arg3"}
|
-- split_shell("arg1 arg2 arg3") --> {"arg1", "arg2", "arg3"}
|
||||||
-- split_shell("arg1 \"arg2 with spaces\" arg3") --> {"arg1", "arg2 with spaces", "arg3"}
|
-- split_shell("arg1 \"arg2 with spaces\" arg3") --> {"arg1", "arg2 with spaces", "arg3"}
|
||||||
-- split_shell("arg1 'arg2\\'s value' arg3") --> {"arg1", "arg2's value", "arg3"}
|
-- split_shell("arg1 'arg2\\'s value' arg3") --> {"arg1", "arg2's value", "arg3"}
|
||||||
|
|
Loading…
Reference in a new issue