Put back support for undocumented -I option to commandline

This allows operating on a user-specified commandline instead of the
true contents. This was inadvertently removed in a32248277f.
This commit is contained in:
ridiculousfish
2021-07-21 15:35:22 -07:00
parent 0f127cc7f3
commit ce371e1881
2 changed files with 10 additions and 1 deletions

View File

@@ -36,3 +36,8 @@ sendline("set what (commandline)")
expect_prompt()
sendline('echo "<$what>"')
expect_prompt("<>")
# Test for undocumented -I flag.
# TODO: consider removing.
sendline("commandline -I foo")
expect_prompt("foo")