2
Comment puis-je diviser une commande shell sur plusieurs lignes lors de l'utilisation d'une instruction IF?
Comment puis-je diviser une commande sur plusieurs lignes dans le shell, lorsque la commande fait partie d'un if instruction? Cela marche: if ! fab --fabfile=.deploy/fabfile.py --forward-agent --disable-known-hosts deploy:$target; then rc=1 fi Cela ne fonctionne pas: # does not work: if ! fab --fabfile=.deploy/fabfile.py \ --forward-agent \ --disable-known-hosts deploy:$target; then rc=1 …