diff options
author | Peter Stephenson <p.stephenson@samsung.com> | 2019-06-20 11:13:05 +0100 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2019-06-20 11:13:05 +0100 |
commit | b8dc5a7f6d52df98a546ad3b39104f4b8e7b8daf (patch) | |
tree | 360211057d08021d5e1e7291e5d81d4d9ba2bf76 /README | |
parent | 80aa807a61cf10ebf459ba8e06621a5ec33041dc (diff) | |
download | zsh-b8dc5a7f6d52df98a546ad3b39104f4b8e7b8daf.tar.gz zsh-b8dc5a7f6d52df98a546ad3b39104f4b8e7b8daf.tar.xz zsh-b8dc5a7f6d52df98a546ad3b39104f4b8e7b8daf.zip |
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.
Diffstat (limited to 'README')
-rw-r--r-- | README | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/README b/README index 9763e7aa6..be7929164 100644 --- a/README +++ b/README @@ -30,9 +30,28 @@ Zsh is a shell with lots of features. For a list of some of these, see the file FEATURES, and for the latest changes see NEWS. For more details, see the documentation. -Incompatibilities since 5.6.2 +Incompatibilities since 5.7.1 ----------------------------- +The history expansion !:1:t2 used to be interpreted such that the 2 +was a separate character added after the history expansion. Now +it is an argument to the :t modifier. + +For example + +% echo /my/interesting/path +% echo !:1:t2 + +used to echo "path2", but now echoes "interesting/path". + +The behaviour of :h has similarly changed. + +The behaviour has also changed in forms such as ${foo:t2) and *(:t2), +but in those cases the previous behaviour was not meaningful. + +Incompatibilities between 5.6.2 and 5.7.1 +----------------------------------------- + 1) vcs_info git: The gen-unapplied-string hook receives the patches in order (next to be applied first). This is consistent with the hg backend and with one of two contradictory claims in the documentation |