Mandi! Mathieu Parent In chel di` si favelave... > > Seems to me a dupe of #743202 ... > No this is a regression of #743202. This comes from the bashism > IFS=$'\n'. I have not found a solution yet. Patch welcome (a workaound > is to use #!/bin/bash as shebang).
Ok; anyway the culprit came from: for variable in `egrep -v '^[[:space:]]*(#|$)' "$CONFFILE" | awk '{print $1}'`; do value=`grep ^$variable $CONFFILE | head -n1 | awk '{print $2}'` if [ -n "$value" ]; then export "config_$variable"="$value" fi done but, effectively the only config options used as a avariables are config_PidFile, config_CommandsSocket, config_User and config_Group, that does not make trouble, because the value is clearly have no space. Why not simply substitute with: for variable in "PidFile CommandsSocket User Group"; do value=`grep ^$variable $CONFFILE | head -n1 | awk '{print $2}'` if [ -n "$value" ]; then export "config_$variable"="$value" fi done ?! I think can fix and simplify all the stuff. PS: also, i suppose that c-icap.conf is caseless on options name, so probably it is safe to put all the variable in lower or UPPER case, eg: for variable in "PIDFILE COMMANDSSOCKET USER GROUP"; do value=`grep -i ^$variable $CONFFILE | head -n1 | awk '{print $2}'` if [ -n "$value" ]; then export "config_$variable"="$value" fi done -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.sv.lnf.it/ Polo FVG - Via della Bontà , 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/chi_siamo/5xmille.php (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org