mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 16:21:15 -03:00
@@ -13,7 +13,7 @@ send, sendline, sleep, expect_prompt, expect_re, expect_str = (
|
||||
|
||||
|
||||
def expect_read_prompt():
|
||||
expect_re(r"\r\n?read> (\x1b\[\?1004h)?$")
|
||||
expect_re(r"\r\n?read> $")
|
||||
|
||||
|
||||
def expect_marker(text):
|
||||
@@ -56,12 +56,12 @@ print_var_contents("foo", "bar")
|
||||
|
||||
# read -c (see #8633)
|
||||
sendline(r"read -c init_text somevar && echo $somevar")
|
||||
expect_re(r"\r\n?read> init_text(\x1b\[\?1004h)?$")
|
||||
expect_re(r"\r\n?read> init_text$")
|
||||
sendline("someval")
|
||||
expect_prompt("someval\r\n")
|
||||
|
||||
sendline(r"read --command='some other text' somevar && echo $somevar")
|
||||
expect_re(r"\r\n?read> some other text(\x1b\[\?1004h)?$")
|
||||
expect_re(r"\r\n?read> some other text$")
|
||||
sendline("another value")
|
||||
expect_prompt("another value\r\n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user