[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Executable options style question
From: |
Jacques Menu |
Subject: |
Re: Executable options style question |
Date: |
Thu, 11 Jul 2019 20:32:49 +0200 |
Thanks Hans!
JM
> Le 11 juil. 2019 à 18:01, Hans Åberg <address@hidden> a écrit :
>
>
>> On 11 Jul 2019, at 09:32, Jacques Menu <address@hidden> wrote:
>>
>> I’ve wondering about command line options with multiple values.
>>
>> Which one of the following in preferable in your opinion:
>>
>> DESSUS="Cor anglais"
>> xml2ly -msr-part-rename "P1 = ${DESSUS}"
>>
>> or:
>>
>> DESSUS="Cor anglais"
>> xml2ly -msr-part-rename P1 "${DESSUS}”
>
> POSIX, Guideline 8 [1] says that they should be presented as a single
> argument to the option, separated with comma or blanks within that argument.
> GNU [2] does not mention that explicitly.
>
> 1. https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html
> 2. https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html
>
>