On 7/1/07, Alden Pierre <[EMAIL PROTECTED]> wrote:
   I'm having a hard time trying to install packages on my machine.
1.  PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/

2.  pkg_add -i screen gives me the following:
                 sh: cannot create /var/tmp/pkgout.V6ybCkITOgB: File exists
           No packages available in the PKG_PATH
           Can't resolve screen

A semi-wild guess: your  $ENV file sets the 'noclobber' option (aka "set -C").

If so, the good news is that this is already fixed for 4.2, as seen in
the changelog on the website:
 o Make ksh(1) only process ENV when in interactive mode.

(The POSIX/SUS spec mandates the new behavior.)

For now, I recommend placing the following at the top of your $ENV file:
   case $- in
   *i*) ;;
   *)   return;;
   esac

(I.e., "if not in interactive mode, stop processing this file")


Philip Guenther

Reply via email to