Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 11:18 on June 26, 2006


Confused?

[Z] $EDITOR whether air test environment variables
Echo $?
Why no matter what is behind the document, the final results were 0

Confused?

[code]
$EDITOR] Or [z]] [[z $EDITOR
Order itself (shell built), $? [[]] operation is successful. So 0
[Z], named $EDITOR echo "no editor env variable! "
Incidentally, you EDITOR is to test whether the air, that is to say, it might be empty.
[Z] $EDITOR EDITOR space in the present circumstances, even grammatical mistakes.
[X] = X$EDITOR, named echo "no editor env variable! "
This test will be suitable for some of you
[/code]

Confused?

I am afraid the answer to the second floor there is a problem, [or] condiction condiction return value is not test the success of the implementation of the order, but the real test conditions condiction. As [z] If you $EDITOR $EDITOR return 0 otherwise return to empty one.

Confused?

[Z], named echo true | | echo false $EDITOR

Confused?



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com