mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
add tests for a pipe at the end of the line
This commit is contained in:
parent
38418d6356
commit
26ea8dc362
1 changed files with 17 additions and 0 deletions
|
@ -39,3 +39,20 @@ expect_prompt -re {echo .history.*} {} unmatched {
|
||||||
send_line "echo -n #comment\\"
|
send_line "echo -n #comment\\"
|
||||||
expect_prompt
|
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 a new issue