[OT] xkcd

Ben Scott dragonhawk at gmail.com
Mon Oct 15 09:23:48 EDT 2007


On 10/15/07, Tom Buskey <tom at buskey.name> wrote:
> It'd be nice if --version wasn't so wordy or you could get just the version
> like uname -r

  FYI, there is a BASH_VERSION internal variable that's useful for
this sort of thing.  There's a bunch of others with similar good info,
too.  They're not exported in the external environment (because
they're internal shell magic), so they don't show up with "env".  The
bash(1) man page lists them under "Shell Variables".

  Of course, knowing how much the world tends to suck, I'm guessing
BASH_VERSION is not available in all versions of Bash... ;-)

-- Ben


More information about the gnhlug-discuss mailing list