Skip to content

Commit 8a0334d

Browse files
akinomyogascop
authored andcommitted
test(quote_readline): add a remark on "rendered_cmd"
1 parent 278e203 commit 8a0334d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/t/unit/test_unit_quote_readline.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,13 @@ def test_github_issue_526_1(self, bash):
9393
os.mkdir("./alpha\tbeta")
9494
assert (
9595
assert_complete(
96-
bash, "echo alpha\\\026\tb", rendered_cmd="echo alpha\\ b"
96+
# Remark on "rendered_cmd": Bash aligns the last character 'b'
97+
# in the rendered cmd to an "8 x n" boundary using spaces.
98+
# Here, the command string is assumed to start from column 2
99+
# because the width of PS1 (conftest.PS1 = '/@') is 2,
100+
bash,
101+
"echo alpha\\\026\tb",
102+
rendered_cmd="echo alpha\\ b",
97103
)
98104
== "eta/"
99105
)

0 commit comments

Comments
 (0)