> > > Put x in front of everything: > > > Which reminds me - what are the advantages of it ? In the gallium > drivers (where this is derived from) and I've not seen any issues. > Mostly curious, I'm fine with or without the x. >
It prevents empty string problems. If the variable is undefined or explicitly empty then "x$foo" results in "x" where as "$foo" is just "", which depending on how carefully escaping and or quoting is done, can sometimes disappear entirely as a separate argument instead of an empty string argument. Adding the x just prevents you from having to bother with empty string workarounds entirely.
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev