We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df93981 + c1eef35 commit 16c872fCopy full SHA for 16c872f
docs/read.md
@@ -139,7 +139,18 @@ abc
139
140
上面例子中,变量`letter`只包含3个字母。
141
142
-**(5)其他参数**
+* (5) -e 參數*
143
+
144
+`-e`參數可開啟`readline`功能,在輸入時可使用快捷鍵。
145
+詳情可參閱行操作。
146
147
+```bash
148
+# 和-i搭配使用可以填充預設值
149
+$ read -e -i 'abc'
150
+abc
151
+```
152
153
+**(6)其他参数**
154
155
- `-d delimiter`:定义字符串`delimiter`的第一个字符作为用户输入的结束,而不是一个换行符。
156
- `-r`:raw 模式,表示不把用户输入的反斜杠字符解释为转义字符。
0 commit comments