• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bad Substitution

 
Dinesh Tomar
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 1557
5
Eclipse IDE Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which shell are you using? Dot (.) is not allowed in variable name on bash (I guess ksh supports it).

I hope this helps.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic