mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 20:16:12 +08:00
add tests for a pipe at the end of the line
This commit is contained in:
parent
38418d6356
commit
26ea8dc362
|
@ -39,3 +39,20 @@ expect_prompt -re {echo .history.*} {} unmatched {
|
|||
send_line "echo -n #comment\\"
|
||||
expect_prompt
|
||||
|
||||
# a pipe at the end of the line (#1285)
|
||||
send_line "echo hoge |\n cat"
|
||||
expect_prompt "hoge" {} unmatched {
|
||||
puts stderr "Error with a pipe at the end of the line"
|
||||
}
|
||||
send_line "echo hoge | \n cat"
|
||||
expect_prompt "hoge" {} unmatched {
|
||||
puts stderr "Error with a pipe at the end of the line with whitespaces"
|
||||
}
|
||||
send_line "echo hoge 2>| \n cat"
|
||||
expect_prompt "hoge" {} unmatched {
|
||||
puts stderr "Error with a pipe with redirection at the end of the line"
|
||||
}
|
||||
send_line "echo hoge >| \n cat"
|
||||
expect_prompt "hoge" {} unmatched {
|
||||
puts stderr "Error with a pipe with redirection at the end of the line"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user