
What I observed here is -
Say if I enable the HUSH shell by
#define CFG_HUSH_PARSER #define CFG_PROMPT_HUSH_PS2 ">"
Then I will be able to see the return value from the command with -
=> echo $?
Am I understanding it correctly, and on the right path?
Thanks, Vaibhav
On 10/11/07, Wolfgang Denk wd@denx.de wrote:
In message fde666620710100613r4c27e950qe4c96609af0ac5e6@mail.gmail.com you wrote:
How "itest"command return the result on to serial console, I am
What makes you think it would return anything on the serial console?
issueing following command on U-Boot prompt -
=> itest.b 3 == 5
It returns without any output.
That's as it is supposed to be - in Unix, the shell's "test" command doesn't return anything either. That's how it works.
Can anybody tell me the exact procedure to get the result on U-boot prompt from "itest" command?
You don't get any "results". You get a return code, that's all.
Best regards,
Wolfgang Denk
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de Thought for the day: What if there were no hypothetical situations?