From owner-freebsd-ports Tue May 9 23:16:53 1995 Return-Path: ports-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id XAA10564 for ports-outgoing; Tue, 9 May 1995 23:16:53 -0700 Received: from emerald.oz.net (emerald.oz.net [198.68.184.2]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id XAA10558 for ; Tue, 9 May 1995 23:16:52 -0700 Received: from wsantee.oz.net by emerald.oz.net via SMTP (931110.SGI/930416.SGI) for freebsd-ports@freebsd.org id AA20249; Tue, 9 May 95 23:14:52 -0700 Received: (from wsantee@localhost) by wsantee.oz.net (8.6.11/8.6.9) id XAA06332 for freebsd-ports@freebsd.org; Tue, 9 May 1995 23:13:35 -0700 From: Wes Santee Message-Id: <199505100613.XAA06332@wsantee.oz.net> Subject: pdksh errors - Solved! To: freebsd-ports@FreeBSD.org Date: Tue, 9 May 1995 21:34:00 -0700 (PDT) X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 755 Sender: ports-owner@FreeBSD.org Precedence: bulk Well, I dunno if anybody has any interest in this, but I solved my earlier problem of pdksh crapping out whenever I tried to run /usr/bin/clear. The error was in the global /etc/ksh.kshrc file. Here is the culprit: HOSTNAME=${HOSTNAME:-`uname -n` HOST=${HOSTNAME%%.*} <--- error My Korn Shell book is at work so I haven't tried to figure out what is wrong with that statement. For all intents and purposes it *should* work. But, I commented it out, and now pdksh is happy. Incidentally, you may recall that the original error was: /usr/bin/clear: 21: syntax error: bad substitution Well, I'll leave it to the reader to figure out what line number the offending statement was in the /etc/ksh.kshrc file. :) Cheers, -Wes