From mboxrd@z Thu Jan 1 00:00:00 1970 From: do Date: Wed, 08 Feb 2006 12:56:24 +0100 Subject: [U-Boot-Users] Capture of the returned value in cmdline Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, Is this possible to capture value returned by the function, which implement some command (for example do_printenv), from commandline in u-boot and for example write it to some shell variable? Is this also possible with standalone programs like examples/hello_world.c? By the way, what is the usage/application of the flag argument in command function declaration, for example: int do_printenv(cmd_tbl_t * cmdtp, int flag, int argc, char * argv[]); Best regards!