www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.2 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
From: | Tim Visher <tim DOT visher AT gmail DOT com> |
Date: | Fri, 26 Feb 2010 08:46:39 -0500 |
Message-ID: | <c115fd3c1002260546o5c1f2fdete38f22ffed35f988@mail.gmail.com> |
Subject: | What does this bash line do? |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hi All, I'm working on my bashrc and I found [this line](http://pastie.org/844068) that I had copied out of /etc/skel via cygwin. I'm trying to create a platform agnostic bash configuration in the spirit of .emacs.d with .bashrc and .bash_profile and one thing I'm running into is that various locations change so I need to either conditionally load them via `if [ ]` statements or possibly better yet discover the platform I'm on and have a single conditional or set a variable in the spirit of `(emacs-type)`. My question then, is what exactly is this line doing? Like I said, I got it from my Cygwin install but it works very similarly at home on Apple Bash w/ MacPorts underneath. I understand this isn't strictly a Cygwin question but I figure you all are bash experts anyway so why not? -- In Christ, Timmy V. http://burningones.com/ http://five.sentenc.es/ - Spend less time on e-mail -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |