0

I've had a request from a vendor to set a specific environment variable against their software. I'm currently awaiting an explanation of what this actually does. However, I decided to check to see exactly what environment variables were available within the binary using "strings" (on Solaris in this case). It doesn't list the one that they're talking about though.

I think this means that the setting they're asking for isn't actually picked up in any way by the binary mentioned (or any of that vendor's binaries - I checked through the lot of them). However, I'm unsure and can't find an answer to whether running "strings" against a compiled binary will list all of the variables that it can pick up and use from the OS.

Can anyone help to confirm this?

Thanks in advance.

4

1 回答 1

3

变量名在二进制文件中没有作为可读字符串出现这一事实并不能保证程序不会得到它的值。例如,环境变量名称可以在运行时通过连接子字符串来构建。

于 2014-11-10T17:44:57.587 回答