From owner-freebsd-questions@FreeBSD.ORG Tue Dec 1 22:10:36 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBF8F106566B for ; Tue, 1 Dec 2009 22:10:36 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 78E5F8FC08 for ; Tue, 1 Dec 2009 22:10:36 +0000 (UTC) Received: from r55.edvax.de (port-92-195-228-22.dynamic.qsc.de [92.195.228.22]) by mx02.qsc.de (Postfix) with ESMTP id C87031EC1A; Tue, 1 Dec 2009 23:10:34 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id nB1MAXRe006998; Tue, 1 Dec 2009 23:10:34 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 1 Dec 2009 23:10:33 +0100 From: Polytropon To: Gary Kline Message-Id: <20091201231033.1d07ad59.freebsd@edvax.de> In-Reply-To: <20091201214554.GA98830@thought.org> References: <560275.79074.qm@web30808.mail.mud.yahoo.com> <4B15774A.5040700@lazlarlyricon.com> <20091201224210.15ab009d.freebsd@edvax.de> <20091201214554.GA98830@thought.org> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: =?ISO-8859-1?Q?D=E1nielisz_?=, =?ISO-8859-1?Q?L=E1szl=F3?= , freebsd-questions@freebsd.org, Rolf G Nielsen Subject: Re: bash script question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2009 22:10:36 -0000 On Tue, 1 Dec 2009 13:45:55 -0800, Gary Kline wrote: > Hi guys, > > Here's a bash-related question, kind-of. Is there any way to > automagically run my .csrhc thru a script and wind up with a > bash script? csh and (ba)sh use dufferent syntax and variable names. But you could write an easy "search and replace" translator for the .cshrc settings, which are mostly alias foo = 'bar' set var = value setenv envvar = value but for some of them, there's no bash equivalent (e. g. set promptchars and set promt in cshrc, but PS1 in bash). I'm not aware of an already existing mechanism that does this. Running one shell from the other doesn't transport most of the settings. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...