Re: Debconf syntax error message that I don't understand

2011-07-13 Thread Frank Küster
Joey Hess wrote: > Frank Küster wrote: >> OLD_IFS="$IFS" >> IFS=$OLDIFS > > s/_// :-( -- Frank Küster Sprecher B90/Grüne OV Miltenberg und Umgebung VCD Miltenberg, ADFC Aschaffenburg-Miltenberg Debian Developer (TeXLive) -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org wi

Re: Debconf syntax error message that I don't understand

2011-07-12 Thread Dominique Dumont
Le Wednesday 13 July 2011 00:27:01, John D. Hendrickson and Sara Darnell a écrit : > # just read the file into the script. run script with > > sh -x (yuour script) > > too bad nobody every wrote a good sh debugger ! what about bashdb ? Dominique -- http://config-model.wiki.sourceforge.net/ -

Re: Debconf syntax error message that I don't understand

2011-07-12 Thread John D. Hendrickson and Sara Darnell
Steve Langasek wrote: On Tue, Jul 12, 2011 at 10:02:33PM +0200, Frank Küster wrote: Doesn't work, unfortunately: # now get rid of the commas by assigning to the positional parameters set -x OLD_IFS="$IFS" IFS=$OLDIFS These variable names don't match, + IFS= printf %s\n SUBST

Re: Debconf syntax error message that I don't understand

2011-07-12 Thread Steve Langasek
On Tue, Jul 12, 2011 at 10:02:33PM +0200, Frank Küster wrote: > Doesn't work, unfortunately: > # now get rid of the commas by assigning to the positional parameters > set -x > OLD_IFS="$IFS" > IFS=$OLDIFS These variable names don't match, > + IFS= printf %s\n SUBST texlive-base/texco

Re: Debconf syntax error message that I don't understand

2011-07-12 Thread Joey Hess
Frank Küster wrote: > OLD_IFS="$IFS" > IFS=$OLDIFS s/_// -- see shy jo signature.asc Description: Digital signature

Re: Debconf syntax error message that I don't understand

2011-07-12 Thread Frank Küster
Joey Hess wrote: > Your script is setting IFS="," Yes, indeed. > All you need to do to fix it in your script though is to restore IFS > before you start talking to debconf. Doesn't work, unfortunately: # now get rid of the commas by assigning to the positional parameters set -x OLD_IFS=

Re: Debconf syntax error message that I don't understand

2011-07-12 Thread Joey Hess
Frank Küster wrote: > Hi, > > I am at a loss with shell script that uses debconf. The script itself > is in /etc/libpaper/, but since it is often called from maintainer > scripts, it uses debconf. > > The problem is that debconf says it didn't get the right number of > arguments, but I think it