Lors de l'appel de commandes longues et lourdes, il est recommandé de les écrire dans des scripts shell. Existe-t-il un moyen simple de commenter des lignes dans de tels scripts? J'ai essayé les méthodes suivantes, mais aucune ne fonctionne.
# the \ is also commented out, resulting in "command" and "--good-switch".
command \
#--bad-switch \
--good-switch \
# seems to send an extra argument to the command
command \
\ #--bad-switch \
--good-switch
\échappe au caractère suivant, qui "cache" les nouvelles lignes mais rend les espaces significatifs).