Re: Investigating /etc/profile

2005-04-08 Thread Simon Geard
On Thu, 2005-04-07 at 19:56 -0500, Dan McGhee wrote: I also cannot mentally expand the expression $PATHVARIABLE=${!PATHVARIABLE:+:${!PATHVARIABLE}} Can't blame you - that's pretty ugly. I've seen (and written) worse though, so let's break it down: The exclamation marks are like a pointer -

Re: Investigating /etc/profile

2005-04-08 Thread Dan McGhee
Simon Geard wrote: On Thu, 2005-04-07 at 19:56 -0500, Dan McGhee wrote: I also cannot mentally expand the expression $PATHVARIABLE=${!PATHVARIABLE:+:${!PATHVARIABLE}} Can't blame you - that's pretty ugly. I've seen (and written) worse though, so let's break it down: The exclamation marks

Re: Investigating /etc/profile

2005-04-07 Thread Dan McGhee
Andrew Benton wrote: snipI've just started reading the Advanced Bash Scripting Guide http://personal.riverusers.com/~thegrendel/abs-guide-3.3.tar.bz2 and on what I've read so far, I recommend it. Andrew, thanks for the recommendation on the book. It's really informative and laid out well.