${(F)…}: Join array with newlines

(F) joins the elements of an array together using newlines (\n).

${(F)name} is equivalent to ${(pj:\n:)name}.

Examples

Join array elements with `
`
1
2
values=(first second third)
echo -e "Array elements:\n${(F)values}"
Output:
1
2
3
4
Array elements:
first
second
third
BashSupport Pro 是一款支持 F** 的 **Zsh 集成开发环境 - 立即试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款