[DragonFlyBSD - Bug #2517] (Feedback) varsym does not return an exit code

Antonio M. Huete Jimenez via Redmine bugtracker-admin at leaf.dragonflybsd.org
Thu Feb 28 15:48:08 PST 2013


Issue #2517 has been updated by tuxillo.

Status changed from New to Feedback
Assignee set to tuxillo

Hi Dmitry,

Should be fixed in 65d793b5df37b8562b7109d685f2dc30023082fd.

antonioh at devel01:/home/antonioh> varsym test=OK
antonioh at devel01:/home/antonioh> varsym test
test=OK
antonioh at devel01:/home/antonioh> echo $?
0
antonioh at devel01:/home/antonioh> varsym TEST
TEST: No such file or directory
antonioh at devel01:/home/antonioh> echo $?
1
antonioh at devel01:/home/antonioh> varsym -d test
antonioh at devel01:/home/antonioh> echo $?
0
antonioh at devel01:/home/antonioh> varsym -d test
test: No such file or directory
antonioh at devel01:/home/antonioh> echo $?
2
antonioh at devel01:/home/antonioh> varsym -s test=OK
test: Operation not permitted
antonioh at devel01:/home/antonioh> echo $?
2
antonioh at devel01:/home/antonioh> varsym -q TEST || echo Hurrah! 
Hurrah!


Cheers,
Antonio Huete
----------------------------------------
Bug #2517: varsym does not return an exit code
http://bugs.dragonflybsd.org/issues/2517

Author: Svarov
Status: Feedback
Priority: Normal
Assignee: tuxillo
Category: 
Target version: 


Hi.

Seems that varsym program does not properly return an exit code.
For example, this code won't work:

# varsym test=OK
# varsym test
test=OK
# varsym TEST
TEST: No such file or directory
# echo $?
0 # Should be 1
# varsym -q TEST || echo Hurrah!
#

Regards, Dmitry.


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list