bash question?
I have a question about bash syntax. I am using something out of the gentoo install guide as an example
Code:
CFLAGS="-march=athlon-xp -pipe -O2" Code:
CXXFLAGS="$CFLAGS" |
In the case of the example given, they are optional. There are many constructions where they are required, to mention just one:
${parameter:-word} If you want the whole story: man bash, specifically the Parameter Expansion section. On a personal note: I always use the brackets. I could be wrong, but I believe that's the way 'it's supposed to be done'. Hope this helps. |
All times are GMT -5. The time now is 03:50 PM. |