From owner-freebsd-questions Wed Oct 18 13:51:20 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fremont.bolingbroke.com (adsl-216-102-90-210.dsl.snfc21.pacbell.net [216.102.90.210]) by hub.freebsd.org (Postfix) with ESMTP id 6A96937B4E5 for ; Wed, 18 Oct 2000 13:51:01 -0700 (PDT) Received: from fremont.bolingbroke.com (fremont.bolingbroke.com [216.102.90.210]) by fremont.bolingbroke.com (Pro-8.9.3/Pro-8.9.3) with ESMTP id NAA74482; Wed, 18 Oct 2000 13:50:58 -0700 (PDT) Date: Wed, 18 Oct 2000 13:50:58 -0700 (PDT) From: Ken Bolingbroke To: Rick Hamell Cc: freebsd-questions@FreeBSD.ORG Subject: Re: CSH Shell In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You want to use backticks instead of single quotes, that is, where you currently have: set prompt="'hostname' %" Change the single quotes to backticks: set prompt="`hostname` %" The backticks tell the shell to execute the command inside them, and use the output instead. Single quotes in that context have no special meaning, which is why you see the literal 'hostname' as your prompt. Ken On Tue, 17 Oct 2000, Rick Hamell wrote: > Taking my first steps into scripting, my first task is to figure > out how to customize csh. Problem is, I can't seem to make something like > set prompt="'hostname' %" work... The command hostname dosen't seem to > work at all. I figure I've got the syntax wrong, but where... ? :) What I > get is 'hostname' btw. Thanks much! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message