I am scripting (sh) some package installs on an updated (today) OpenBSD 
4.0-STABLE system and I am getting errors even when the pkg_add command 
ultimately succeeds and installs the packages.

The shell script in question and sample output:

export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/
for i in bash \
           wget
do
pkg_add $i
done

Error from ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/:
Unknwn command.
wget-1.10.2p0 complete

BTW, I am also having trouble specifying a package whose name contains 
version numbers like:

cvsup-16.1h-no_x11

I would rather include this in my for loop as:

cvsup-*-no_x11

My attempts to escape the glob character have been futile ("cannot 
resolve"):

cvsup-\*-no_x11

and putting the $i in double quotes doesn't help.

Thanks for any pointers.

PM

Reply via email to