URL: https://linuxfr.org/forums/linux-general/posts/scripting-pb-avec-read-et-d%C3%A9coupage-de-mots Title: [Scripting] Pb avec read et découpage de mots Authors: serial Date: 2004年06月09日T11:39:43+02:00 Tags: Score: 0 Voilà, J'ai ceci : #!/bin/zsh IFS="|" echo "1|2|3" | read UN DEUX TROIS echo $UN $DEUX $TROIS cela ne fonctionne pas, il ne fait aucune affectation, les variables sont vides. En revanche, si je tape ces commandes dans la console, ça passe. J'ai aussi testé : #!/bin/zsh IFS="|" echo "1|2|3" > param read UN DEUX TROIS < param echo $UN $DEUX $TROIS et ça marche. Bien sûr il n'y a aucun intérêt de passer par un fichier. Quelqu'un a la solution ?