Subject: help - need a working ksh
To: None <netbsd-users@netbsd.org>
From: Louis Guillaume <lguillaume@berklee.edu>
List: netbsd-users
Date: 05/27/2003 19:48:50
Hi everyone,
I desperately need a working ksh for NetBSD. There seem to be 2 versions
in pkgsrc, ast-ksh and pdksh.
It looks like pdksh is installed by default, and it just doesn't cut it
because...
$ ls | exec 3<&0
$ while read i <&3 ;do
> echo $i
> done
ksh: <&3 : bad file descriptor
... it can't initialize file descriptors via standard input. This
happens with pdksh on Linux too, so I know pdksh is just inferior. And
besides ast-ksh is the "official" one.
But it doesn't appear to build because...
250 "/pub" is new cwd.
250 "/pub/FreeBSD" is new cwd.
250 "/pub/FreeBSD/ports/distfiles" is new cwd.
local: INIT.2002-12-21.tgz remote: INIT.2002-12-21.tgz
227 Entering Passive Mode (62,243,72,50,230,76)
550 No such file.
221 Goodbye.
=> Couldn't fetch INIT.2002-12-21.tgz - please try to retrieve this
=> file manually into /usr/pkgsrc_distfiles/ and try again.
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/shells/ast-ksh
*** Error code 1
On further inspection I see that there is no longer any version
2002-12-21 but now its oddly joined up with 2003-04-22 a la
"2003-04-22.2002-12-21". What's going on there???
Anyway, I'd really like to find out how to update the package to go get
the latest source. I tried just changing the version in the Makefile and
doing "make NO_CHECKSUM=yes" but when the files arrive they are "not in
gzip format".
Is there anything I can do? I have some ksh scripts that use file
descriptors and I'm migrating from Linux to NetBSD.
Any help would be magnificent. Thanks,
Louis