這是可能與source <(grep = test.ini)
讀取來自.ini
文件變量:有沒有辦法清除使用source <(grep = ...)讀取的變量?
$ cat test.ini
[head]
shoulders=/hahaha/
knees=/lololol/
toes=/kekeke/
$ source <(grep = test.ini)
$ echo $shoulders
/hahaha/
$ echo $knees
/lololol/
$ echo $toes
/kekeke/
我可以從source <(grep = ...)
命令,例如讀手動清除變量
$ unset toes
$ echo toes
但是,有沒有辦法自動跟蹤哪些變量從source
命令添加和取消設置它們放在一起?
是它允許重新使用ini文件? –
這樣的'ini'文件可能不安全。 – anubhava
爲什麼找到一個ini文件不安全? – alvas