IntelliJ Java IDE
The moose likes Linux / UNIX and the fly likes Bad Substitution Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "Bad Substitution" Watch "Bad Substitution" New topic
Author

Bad Substitution

Dinesh Tomar
Greenhorn

Joined: Jan 25, 2012
Posts: 1
I have a key name suppose my.real.name and i want to display its value as
echo ${my.real.name}
it gives me an error Bad Substitution. Please tell me what to do?
Anayonkar Shivalkar
Ranch Hand

Joined: Dec 08, 2010
Posts: 671

Which shell are you using? Dot (.) is not allowed in variable name on bash (I guess ksh supports it).

I hope this helps.


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD)
 
 
subject: Bad Substitution
 
Threads others viewed
Inheritence
Regarding overriding
need a substitute for XYLayout class in "com.borland.jbcl.layout" package
Has anyone learned C#?
ksh script - (Not Java related) - Child script name
IntelliJ Java IDE