Contents of Directory Displayed using Arithmetic Expression
Friday, January 25 2008, 12:58 IST Dear Friends, I executed the following command at bash command line.
|
Hi
You forgot to set $X and $Y? expr \* Outputs: * So: echo Area: * Outputs: "Area: " followed by the content of the current directory. Remember bash evaluates the * before it executes the echo command. It's a bit strange but it does make sense. |
Quote:
Yes; I have deliberately not set the value of $X & $Y. Their values are undefined. Quote:
A new question has arisen in my mind; how come the execution of these commands |
I think you need to read up on how shell-globbing works.
|
All times are GMT -5. The time now is 09:46 PM. |