To get my .sbclrc file working on the two computers I use, I'd like a way to get the hostname and/or operating system from within sbcl. I know I could set and then look for an environment variable, but is there a more direct approach?
Update
I changed the question to refer to common lisp, since the answer from Ken is not specific to sbcl.
EDIT: I like @Ken's solution better. +1.
I'd use the 'environment' functions: