From owner-freebsd-questions@FreeBSD.ORG Thu Oct 19 18:59:09 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DDF816A412 for ; Thu, 19 Oct 2006 18:59:09 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EA7D43D55 for ; Thu, 19 Oct 2006 18:57:23 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-2) with ESMTP id k9JIucqI020586 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 19 Oct 2006 21:56:42 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.8/8.13.8) with ESMTP id k9JIvBbH068284; Thu, 19 Oct 2006 21:57:14 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.8/8.13.8/Submit) id k9JIvBBP068283; Thu, 19 Oct 2006 21:57:11 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 19 Oct 2006 21:57:11 +0300 From: Giorgos Keramidas To: Martin McCormick Message-ID: <20061019185710.GA57678@gothmog.pc> References: <200610191649.k9JGmxOl017063@dc.cis.okstate.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200610191649.k9JGmxOl017063@dc.cis.okstate.edu> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.571, required 5, AWL -0.17, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20, UNPARSEABLE_RELAY 0.00) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: Why csh on Root? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Oct 2006 18:59:09 -0000 On 2006-10-19 11:48, Martin McCormick wrote: > RW writes: > > There is an alternative uid 0 user called toor which you can use if you > > want > > to use bash as root. OTOH hand there is a school of thought that you > > shouldn't be too comfortable as root. > > My thanks to all. On all the systems in question, bash > ends up on the same partition as root, but the points are > well-taken. > > One thing I was trying to accomplish is to have a bell in > the root prompt. In the .cshrc file is a string > > set prompt="\007\!# " > > I have also tried replacing the \007 with the actual > Control-G and even a \a. All produce an attempt to render a bell > but what is sent to the remote terminal is ^G1# > as in the actual ASCII characters ^ and G. > > I am not sure what to do to correct this problem as I do not get > it in bash. A \a or \007 is sent literally. This is easy to do with tcsh: set prompt = '%{^G%}%n@%m:%/%# ' Note the %{ ... %} around the literal ^G character :)