read cmd 超乎預期求原因 - Linux
By Dorothy
at 2021-12-22T12:08
at 2021-12-22T12:08
Table of Contents
1.
在當前目錄下建立檔案
abs
2.
read
input:[abc]
echo $REPLY
顯示:a
3.
read
input: [cba]bs
echo $REPLY
顯示:abs
4.
read
input: [k]bs
echo $REPLY
顯示:[k]bs
5.
read
input: [cba]bs
echo “$REPLY”
顯示: [cba]bs
感覺跟該目錄下檔名有關耶?!
有人知道原因嗎?
感謝
----
Sent from BePTT on my iPhone 12
--
在當前目錄下建立檔案
abs
2.
read
input:[abc]
echo $REPLY
顯示:a
3.
read
input: [cba]bs
echo $REPLY
顯示:abs
4.
read
input: [k]bs
echo $REPLY
顯示:[k]bs
5.
read
input: [cba]bs
echo “$REPLY”
顯示: [cba]bs
感覺跟該目錄下檔名有關耶?!
有人知道原因嗎?
感謝
----
Sent from BePTT on my iPhone 12
--
Tags:
Linux
All Comments
By Todd Johnson
at 2021-12-27T11:03
at 2021-12-27T11:03
By Connor
at 2022-01-01T09:59
at 2022-01-01T09:59
By Christine
at 2022-01-06T08:54
at 2022-01-06T08:54
Related Posts
Ubuntu21.10哪個輸入法能自訂碼表?
By Kumar
at 2021-12-01T21:51
at 2021-12-01T21:51
CentOS8 無法使用pppoe撥號
By Aaliyah
at 2021-11-29T12:40
at 2021-11-29T12:40
d-link dwa171(c)網卡安裝失敗
By Hamiltion
at 2021-11-26T15:04
at 2021-11-26T15:04
罕見 HDMI 只能輸出單聲道解決方式
By Leila
at 2021-11-24T13:14
at 2021-11-24T13:14
Ubuntu 無法使用圖形化介面
By Caitlin
at 2021-11-21T02:23
at 2021-11-21T02:23