From b8dc5a7f6d52df98a546ad3b39104f4b8e7b8daf Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 20 Jun 2019 11:13:05 +0100 Subject: 44435: Handling digita arguments for :h and :t. Pick number of leading or trailing path components to substitute. Active in history, brace parameters, glob qualifiers. Add tests for all three environments. --- Test/W01history.ztst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'Test/W01history.ztst') diff --git a/Test/W01history.ztst b/Test/W01history.ztst index 6ef9b11cc..96d0beb61 100644 --- a/Test/W01history.ztst +++ b/Test/W01history.ztst @@ -58,3 +58,26 @@ *?* F:Check that a history bug introduced by workers/34160 is working again. # Discarded line of error output consumes prompts printed by "zsh -i". + + $ZTST_testdir/../Src/zsh -fis <<<' + echo /my/path/for/testing + echo !1:1:h10 + echo !1:1:h3 + echo !1:1:h2 + echo !1:1:h1 + echo !1:1:t10 + echo !1:1:t3 + echo !1:1:t2 + echo !1:1:t1 + echo !1:1:t3:h2' 2>/dev/null +0:Modifiers :h and :t with arguments +>/my/path/for/testing +>/my/path/for/testing +>/my/path +>/my +>/ +>/my/path/for/testing +>path/for/testing +>for/testing +>testing +>path/for -- cgit 1.4.1