Writings of a techie wizard
 
Single Entry
Fri, 05 Aug 2011

For non-nerd readers, I promise I won't do this very often, but once in a while I just have to get these sorts of things out of my system. Does anyone else find the following (from a transcript of a short Unix shell session) a little weird?

peter@localhost:~$ true
peter@localhost:~$ echo $?
0
peter@localhost:~$ false
peter@localhost:~$ echo $?
1

The test of whether you're a nerd reader or not, of course, is first, whether the above makes sense to you, and second, if it does, do you immediately see why I find it weird?

(And for the really nerdy nerds who are brimming full of explanations of why it's not really weird at all, it makes perfect sense for things to be that way, yes, I know why it's that way. I write Unix shell programs too. I just said it was a little weird, not that it was bad engineering. It isn't, all things considered.)

Posted at 22:19   |   Category: general   |   Tags: computers   |   Permalink
Wizard Projects
Site Links
Open Source Projects
simpleblog3
dev release
plib3.stdlib
dev release
plib3.classes
dev release
plib3.dbtools
dev release
plib3.io
dev release
plib3.gui
dev release
setuputils3
dev release
simpleblog
dev release
plib.stdlib
dev release
plib.classes
dev release
plib.dbtools
dev release
plib.io
dev release
plib.gui
dev release
setuputils
dev release
Old Open Source Projects
Python Recipes
Fun Stuff
Shameless Plugs
Copyright © 2011-2015
by Peter A. Donis
All Rights Reserved