[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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"

<snip>

  IFS=$OLDIFS

These variable names don't match,

+ IFS=  printf %s\n SUBST texlive-base/texconfig_ignorantbinarydvipdfmx

So that explains this output when using an empty $IFS.


. /usr/share/debconf/confmodule  # just reads in this file

# just read the file into the script.  run script with

sh -x (yuour script)

too bad nobody every wrote a good sh debugger !

if you want help with IFS read the awk(1) about field separators if bash's writeup is confusing about fields and records auto-parsed from input files. (in this case used as sh function arguments)


Reply to: