mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
99d2a344c7
cherry-picked from krader1961/fish-shell commit b69df4fe72 Fixes #4353 (regression in indexing of history contents) and introduces new unit tests to catch bad $history indexing in the future.
12 lines
641 B
Text
12 lines
641 B
Text
empty history detected as expected
|
|
first history command detected as expected
|
|
history function explicit search succeeded
|
|
history function implicit search succeeded
|
|
history function implicit search with timestamps succeeded
|
|
history function explicit exact search 'echo goodbye' succeeded
|
|
history function explicit exact search 'echo hello' succeeded
|
|
history function explicit exact search 'echo hell' succeeded
|
|
history function explicit exact delete 'echo hello' succeeded
|
|
history function explicit prefix delete 'echo hello AGAIN' succeeded
|
|
history function explicit exact search 'echo hello again' succeeded
|
|
history[2] had the correct data
|