Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Negative length parameter expansion
- X-seq: zsh-users 20139
- From: Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Negative length parameter expansion
- Date: Sun, 12 Apr 2015 09:27:39 +0200
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi,
Bash got negative length parameter expansion (like in `${STRING:11:-
17}`) in version 4.2 and Zsh in 4.3.12.
How would I do negative length parameter expansion in Bash or Zsh if
my version doesn't support it?
Thorsten
Messages sorted by:
Reverse Date,
Date,
Thread,
Author