0
 cat some.properties
/server/pdu/secure/enabled=true
/pdu/secure/servers=aninath-lnx:49188
/pdu/unsecure/servers=
/secure/truststore/password=635db14e5350e23142c5c65e3caa50d7
/ui/http/port=8100
/ui/https/port=8443

在执行以下命令时

 **. some.properties**
-bash: /server/pdu/secure/enabled=true: No such file or directory
-bash: /pdu/secure/servers=aninath-lnx:49188: No such file or directory
-bash: /pdu/unsecure/servers=: No such file or directory
-bash: /secure/truststore/password=635db14e5350e23142c5c65e3caa50d7: No such file or directory
-bash: /ui/http/port=8100: No such file or directory
-bash: /ui/https/port=8443: No such file or directory

我试图从我使用的 propertyName 中获取 propertyvalue。some.properties source some.properties,我得到了这些错误

4

1 回答 1

0

只有字母、数字和下划线是构成 Bash 标识符的有效字符,不能使用斜杠。

于 2013-01-23T11:38:45.080 回答