View Single Post
Posts: 289 | Thanked: 83 times | Joined on Jul 2006
#10
Originally Posted by AapoRantalainen View Post
check do you have ucf installed and working
apt-cache policy ucf
which ucf
ls -al /usr/bin/ucf
ucf --help
Ok, here what I have...

Code:
/home/user # apt-cache policy ucf
ucf:
  Installed: 1.17-1osso
  Candidate: 1.17-1osso
  Version table:
 *** 1.17-1osso 0
        500 https://downloads.maemo.nokia.com ./ Packages
        500 https://downloads.maemo.nokia.com ./ Packages
        100 /var/lib/dpkg/status
/home/user # which ucf
/usr/bin/ucf
/home/user # ls -al /usr/bin/ucf
-rwxr-xr-x    1 root     root        30099 Mar 18  2005 /usr/bin/ucf
/home/user # /usr/bin/ucf --help
/bin/sh: /usr/bin/ucf: not found
/home/user #
Notice the error trying to execute "ucf --help". Might it be that it is coded as a 'bash' shell proc -- rather than an 'sh' shell proc. Doing "sh /usr/bin/ucf --help" does work.

Should I change the header of ucf from "#!/bin/bash" to "#!/bin/sh" or does the script have true bash dependencies?
 

The Following User Says Thank You to delaroca For This Useful Post: