bash没有抛出此类文件或目录错误

时间:2013-01-23 11:35:50

标签: bash shell

 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获取我使用过的属性值 。 some.properties source some.properties 我收到了这些错误的

1 个答案:

答案 0 :(得分:0)

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