[geeks] OpenSolaris ready for Production?

Sandwich Maker adh at an.bradford.ma.us
Tue Mar 3 21:55:19 CST 2009


" From: Sridhar Ayengar <ploopster at gmail.com>
" 
" Phil Stracchino wrote:
" > Mike Meredith wrote:
" >> On Tue, 03 Mar 2009 18:26:17 -0500, Phil Stracchino wrote:
" >>> I'm not familiar with that usage and can't quite make sense of what it
" >>> would do.  As far as I can see, '/bin/bash -c true' returns true if
" >>> 'true' exists in the current directory and is a character special
" >>> file, which doesn't seem a useful test under the circumstances.
" >> Really?
" >>
" >> I always thought it would run the 'true' command (which returns true)
" >> and if the command is successful would run the following command.
" >>
" >> I've been using it (specifically "/bin/zsh -c true && exec /bin/zsh")
" >> to "replace" my shell for years.
" > 
" > Ah, now with zsh, that would work.  But the -c option to bash doesn't do
" > that.
" 
" Yes, it does.  http://linux.die.net/man/1/bash

i'm puzzled.  how is any of this better than
test -x <shell> && exec <shell>
?
________________________________________________________________________
Andrew Hay                                  the genius nature
internet rambler                            is to see what all have seen
adh at an.bradford.ma.us                       and think what none thought



More information about the geeks mailing list