[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Executable options style question
From: |
Hans Åberg |
Subject: |
Re: Executable options style question |
Date: |
Thu, 11 Jul 2019 18:01:20 +0200 |
> 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