/var/lib/ucf/registry is present on the system with the problem (see
https://answers.launchpad.net/ubuntu/+source/ucf/+question/448737 )

As far as we already found out one of the causes of this error is that the 
command
egrep --count "[[:space:]]/etc/default/grub$" "/var/lib/ucf/registry"
returns
"Illegal variable name."
when executed in a csh or tcsh shell.
According to http://www.grymoire.com/unix/CshTop10.txt any use of the string $" 
in a csh or tcsh fails that way.

According to suggestions in the grymoire document, a potential workaround could 
be changing line 321 of ucfr from
count=$(egrep --count "[[:space:]]${real_conf_file_re}$" "$statedir/registry") 
|| true
into
count=$(egrep --count "[[:space:]]${real_conf_file_re}"'$' 
"$statedir/registry") || true
(instead of 'dollar doublequote' make it 'doublequote quote dollar quote')
(Note, I was not in a position that I could test myself whether this works.)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1660633

Title:
  /usr/bin/ucfr: line ... : [: : integer expression expected

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ucf/+bug/1660633/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to