Re: Feature Request: Python-like string split and join

2021-01-23 Thread William Park
On Sun, Jan 24, 2021 at 11:29:46AM +0800, Koichi Murase wrote: > 2021年1月24日(日) 10:22 William Park : > Is there a background for choosing a semicolon to split words? Zsh has > a similar feature with a different syntax: I'm running out of special characters, and I don't want another operator or synt

Re: Feature Request: Python-like string split and join

2021-01-23 Thread Koichi Murase
2021年1月24日(日) 10:22 William Park : > [...] But, if separator is string, then it gets messy. I agree that the split by a (multi-character) string is one of the non-trivial operations in the current Bash. > We shouldn't have to resort to Awk/Python for that. I think a typical reply in this list t

Feature Request: Python-like string split and join

2021-01-23 Thread William Park
If separator is a single character, then shell can split a string or join arguments. But, if separator is string, then it gets messy. We shouldn't have to resort to Awk/Python for that. How about Python-like string split and string join? ${parameter...} is overloaded as is, and we are running o