Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 2009 15:13:51 -0800
From:      Gary Kline <kline@thought.org>
To:        Rolf G Nielsen <lazlar@lazlarlyricon.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: bash script question
Message-ID:  <20091201231351.GA99059@thought.org>
In-Reply-To: <4B15925F.7060909@lazlarlyricon.com>
References:  <560275.79074.qm@web30808.mail.mud.yahoo.com> <4B15774A.5040700@lazlarlyricon.com> <20091201224210.15ab009d.freebsd@edvax.de> <20091201214554.GA98830@thought.org> <4B15925F.7060909@lazlarlyricon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 01, 2009 at 11:02:07PM +0100, Rolf G Nielsen wrote:
> Gary Kline wrote:
> >On Tue, Dec 01, 2009 at 10:42:10PM +0100, Polytropon wrote:
> >>On Tue, 01 Dec 2009 21:06:34 +0100, Rolf G Nielsen 
> >><lazlar@lazlarlyricon.com> wrote:
> >>>Why are you using bash? To make a shell script as portable as possible, 
> >>>use /bin/sh. Bash is a third party shell, that isn't included in a base 
> >>>installation (you're not using bash as root's shell, are you?). By using 
> >>>/bin/sh, you make sure the script will run without having to install any 
> >>>ports.
> >>That's a very good advice. Using sh is strongly recommended
> >>for maximal portability. Use sh if you're not requiring 
> >>features that are bash-only.
> >>
> >>
> >
> >	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?
> >
> >	gary
> >
> >
> >>
> >>-- 
> >>Polytropon
> >>Magdeburg, Germany
> >>Happy FreeBSD user since 4.0
> >>Andra moi ennepe, Mousa, ...
> >>_______________________________________________
> >>freebsd-questions@freebsd.org mailing list
> >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >>To unsubscribe, send any mail to 
> >>"freebsd-questions-unsubscribe@freebsd.org"
> >
> 
> If by "Is there any way" you mean "is it possible", the answer would 
> have to be yes. The next question is most likely "has anyone written 
> such a script?" and to that question, someone else will have to provide 
> the answer.
> 
> Rolf Nielsen



	(sheepishly, and hanging my head) yes.  does anybody have a
	csh/cshrc-alias to a bash/bashrc-alias script?  i've got
	hundreds of aliases to be just deleted, i suppose, by dozens
	more.  

	[ ---- ]

	{ please, sur, might i have more to eat? i'm hungry... { beg, contrition... .} }

-- 
 Gary Kline  kline@thought.org  http://www.thought.org  Public Service Unix
        http://jottings.thought.org   http://transfinite.thought.org
    The 7.31a release of Jottings: http://jottings.thought.org/index.php




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091201231351.GA99059>