[ovs-dev] [v3 04/10] lib/damon: add --user option

Andy Zhou azhou at nicira.com
Mon Oct 12 18:25:29 UTC 2015


On Sun, Oct 11, 2015 at 10:33 PM, ALeX Wang <ee07b291 at gmail.com> wrote:
> Hey Andy,
>
> Sorry for this late post, just very interested in the feature
> implemented in this series, one question below,
>
>> +
>> +    user_spec += strspn(user_spec, " \t\r\n");
>
>
>
> In which circumstance will the option value be prefixed
> by "\t\r\n"?
In case the input is provided with shell quotes, and white spaces are
within the quotes.
>
> Is this some common parsing practice?
It is common for filtering user input. May not be so common in command
line parsing.
>
> Thanks,
> Alex Wang,
>
>
> --
> Alex Wang,
> Open vSwitch developer



More information about the dev mailing list