From owner-freebsd-ports Tue May 9 03:20:42 1995 Return-Path: ports-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id DAA09224 for ports-outgoing; Tue, 9 May 1995 03:20:42 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id DAA09218 for ; Tue, 9 May 1995 03:20:37 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id DAA00515; Tue, 9 May 1995 03:20:33 -0700 From: "Rodney W. Grimes" Message-Id: <199505091020.DAA00515@gndrsh.aac.dev.com> Subject: Re: pdksh choading on exec command To: wsantee@wsantee (Wes Santee) Date: Tue, 9 May 1995 03:20:32 -0700 (PDT) Cc: freebsd-ports@FreeBSD.org In-Reply-To: <199505090707.AAA00228@wsantee> from "Wes Santee" at May 9, 95 00:07:50 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1121 Sender: ports-owner@FreeBSD.org Precedence: bulk > > 'Lo all. > > I'm using the -current kernel sup'ed about and hour ago and just > compiled the port of pdksh (also supped about an hour ago). After all > was said and done and I set up an account with pdksh as default shell, > I noticed that whenever I executed a command that tried to clear the > screen, I would get: > > ///:21: bad substitution > > Looking at /usr/bin/clear I see it is just doing this: > > exec tput clear > > Typing this in at the pdksh prompt, it logged me out of the system. > This is all using terminal type cons25. I haven't yet tried with > vt100, et al. Just entering 'tput clear' worked fine. Has anybody > else dealt with this before I go and try to make sense of exec.c in > the pdksh distribution? Are you clear on what ``exec'' does?? It replaces the running tcsh by a copy of ``tput''. When tput exits you are logged out since you no longer have a shell. What happens if you type /usr/bin/clear? -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Custom computers for FreeBSD