You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I noticed that depending upon what I pass to C sometimes result is not what I expect. Having looked at https://github.com/ryanmjacobs/c/blob/master/c#L54 I am a bit confused and thought it is worth raising this question. I see that here instead of trying to process all command line arguments, we there is a for arg in $1, which even if we do a shift later won't mean that this for look is going to run more than once. I assumed that maybe that should have been $@, but it would break some of this logic also.
Anyway, I think my question, since there are not comments there to help me understand, is whether or not this loop at line 54 was meant to be gone through more than once. If so, I think there may be problems with it.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi, I noticed that depending upon what I pass to C sometimes result is not what I expect. Having looked at
https://github.com/ryanmjacobs/c/blob/master/c#L54
I am a bit confused and thought it is worth raising this question. I see that here instead of trying to process all command line arguments, we there is afor arg in $1
, which even if we do a shift later won't mean that this for look is going to run more than once. I assumed that maybe that should have been$@
, but it would break some of this logic also.Anyway, I think my question, since there are not comments there to help me understand, is whether or not this loop at line 54 was meant to be gone through more than once. If so, I think there may be problems with it.
Thanks!
The text was updated successfully, but these errors were encountered: