On 7/15/07, Ahmed Shabana <[EMAIL PROTECTED]> wrote:
> okay this is really a misunderstand , I did not mean by bash the bash
> programming I mean the bash source code which is writen in C
> and I saw this exactly code in it "the source code of find" reduced version:
>
>
> [code]
> while ( --argc > 0 && (*++argv)[0] == '-' ) /*to go through arguments*/
> while (c = *++argv[0]) /*to go through
> strings of the agrs*/
> switch (c) {
Your code was doing something different. (*++argv)[0] is a single
character, whereas you were using it as a string and trying to print
out the string. Be careful using code you don't fully understand!
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi