Sunday, April 28, 2024
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 14185  / 2 Years ago, wed, april 13, 2022, 11:09:51

When I echo $CATALINA_HOME I get a blank line, but when I ls $CATALINA_HOME I correctly get a listing of the directory. Why can't I echo it? I am running Ubuntu 11.04.


More From » command-line

 Answers
0

Because ls $CATALINA_HOME is expanding $CATALINA_HOME to the empty string and accordingly simply doing ls (or ls . to be pedantic). Either you're in the correct directory already or you're not getting what you think you are.


[#44378] Wednesday, April 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bathtusain

Total Points: 380
Total Questions: 124
Total Answers: 111

Location: Trinidad and Tobago
Member since Sat, Apr 9, 2022
2 Years ago
;