Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 10285] gaze what and gaze short don't check their arguments

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 10285] gaze what and gaze short don't check their arguments
  • Date: 4 Jan 2006 19:16:42 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=10285





------- Additional Comments From acedit AT armory.com 2006-01-04 13:16 -------
Corret, it is the return value of the last command. The 'if' and 'for'
commands
work the same way, they return the value of the last command in their body
(*not* their conditional). The last command I see on the else branch is a
message command, which should always return true.

It's effectively this:
$ if false; then echo a; else echo b; fi; echo $?
b
0
$

So unless I missed something obvious, i dont understand how the return-code
can
be non-zero.

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




Archive powered by MHonArc 2.6.24.

Top of Page