CLIL source code from book "Firmware demystified"



Hello, All!

Recently this book has fallen into my hands and I was reviewing the chapter
dedicated to development of Command Line Interface for generic embedded
system.

I was confused, the author offers unusual method: there is main function
getting command line from user and parsing it, than calls appropriate
function (for example, which shows env. variables: show_env()) and pass
'argc' and 'argv[]' to that function (assuming that in CLI prompt you enter
some arguments, like 'show env current').

How is it possible to work?

With best regards, Roman Mashak. E-mail: mrv@xxxxxxxx


.



Relevant Pages

  • Re: invoking C-shell command through Perl script
    ... If you insist on using the OS command, ... As for ENV Vars- again portabiity might be a concern. ... var to persist after the script exits? ... and have the other script open and read it? ...
    (comp.lang.perl.misc)
  • Re: shell script problem in HPUX
    ... I have get rid of the problem with the ENV. ... and the associated command line in the perl script is: ... > Look at what you have ENV set to in your environment with the 'env' command. ... > if you dont want to preserve existing paths in the PATH var. ...
    (comp.sys.hp.hpux)
  • Re: invoking C-shell command through Perl script
    ... If you insist on using the OS command, ... > As for ENV Vars- again portabiity might be a concern. ... I can print now messages from Perl, ... they are special commnads that invoke specific tools for UNIX like ...
    (comp.lang.perl.misc)
  • Re: basic linux question..
    ... just run this command ... notice the dot after the dolar prompt! ... if you want to read the ENV from profile, ...
    (RedHat)
  • Re: How to extend javax.mail for custom POP3 commands?
    ... it may be the case that the first 2 characters returned by the *ENV ... command are NOT OK or RD as demon have said. ... The first line of POP3 ... I'm not a demon customer so I haven't been able to test ...
    (comp.lang.java.programmer)