system-variable

Unable to get a system variable work for manuals

I have the following system variable in .zshrc manuals='/usr/share/man/man<1-9>' I run unsuccessfully zgrep -c compinit $manuals/zsh* I get zsh: no matches found: /usr/share/man/man<1-9>/zsh* The command should be the same as the following command which works zgrep -c compinit /usr/share/man/man<1-9>/zsh* How can you run the ...

How to set java_home on Windows 7?

I went to the Environment Variables in 'System' in the control panel and made 2 new variables. one for user variables and one for system variables, both named JAVA_HOME and both pointing to C:\Sun\SDK\jdk\bin but for some reason, I still get the below error when running a java command... BUILD FAILED C:\Users\Derek\Desktop\eclip...

How to get file list using system variable %LOCALAPPDATA%?

Hi, I want to read the content of the folder located at %LOCALAPPDATA%. But it fails when I tried Directory.GetDirectories("%LOCALAPPDATA%"); I get "The name 'Directory' does not exist in the current context" Please help. ...