From 3bd11d6922917c16b9bf3c5cb143f0bfb905c291 Mon Sep 17 00:00:00 2001 From: Gore Liu Date: Tue, 30 Apr 2019 11:21:24 +0800 Subject: [PATCH] =?UTF-8?q?Update=2002=5FZsh-=E5=BC=80=E5=8F=91=E6=8C=87?= =?UTF-8?q?=E5=8D=97=EF=BC=88=E7=AC=AC=E4=BA=8C=E7=AF=87-=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E5=A4=84=E7=90=86=E4=B9=8B=E5=B8=B8=E7=94=A8?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=EF=BC=89.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...270\347\224\250\346\223\215\344\275\234\357\274\211.md" | 7 +++++++ 1 file changed, 7 insertions(+) diff --git "a/02_Zsh-\345\274\200\345\217\221\346\214\207\345\215\227\357\274\210\347\254\254\344\272\214\347\257\207-\345\255\227\347\254\246\344\270\262\345\244\204\347\220\206\344\271\213\345\270\270\347\224\250\346\223\215\344\275\234\357\274\211.md" "b/02_Zsh-\345\274\200\345\217\221\346\214\207\345\215\227\357\274\210\347\254\254\344\272\214\347\257\207-\345\255\227\347\254\246\344\270\262\345\244\204\347\220\206\344\271\213\345\270\270\347\224\250\346\223\215\344\275\234\357\274\211.md" index 4de8222..162c88b 100644 --- "a/02_Zsh-\345\274\200\345\217\221\346\214\207\345\215\227\357\274\210\347\254\254\344\272\214\347\257\207-\345\255\227\347\254\246\344\270\262\345\244\204\347\220\206\344\271\213\345\270\270\347\224\250\346\223\215\344\275\234\357\274\211.md" +++ "b/02_Zsh-\345\274\200\345\217\221\346\214\207\345\215\227\357\274\210\347\254\254\344\272\214\347\257\207-\345\255\227\347\254\246\344\270\262\345\244\204\347\220\206\344\271\213\345\270\270\347\224\250\346\223\215\344\275\234\357\274\211.md" @@ -304,6 +304,13 @@ cc 2 % echo $str_array[3] 4 + +# 保留其中的空字符串 +% str_array=("${(@s/:/)str}") +% echo $str_array[3] + +% echo $str_array[4] +4 ``` ### 多行字符串