www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_FAIL |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4B87D25B.2060502@redhat.com> |
Date: | Fri, 26 Feb 2010 06:53:31 -0700 |
From: | Eric Blake <eblake AT redhat DOT com> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com, tim DOT visher AT gmail DOT com |
Subject: | Re: What does this bash line do? |
References: | <c115fd3c1002260546o5c1f2fdete38f22ffed35f988 AT mail DOT gmail DOT com> |
In-Reply-To: | <c115fd3c1002260546o5c1f2fdete38f22ffed35f988@mail.gmail.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 |
--------------enig92F14CC103D159D74C8F911D Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable According to Tim Visher on 2/26/2010 6:46 AM: > Hi All, >=20 > I'm working on my bashrc and I found [this > line](http://pastie.org/844068) Pasting 3 lines to pastebin was a waste; just inline them in your email: case $- in *i*) [[ -f /etc/bash_completion ]] && . /etc/bash_completion ;; esac > My question then, is what exactly is this line doing? It is seeing if you have bash-completion installed, and if so, loading it, so that your tab-completion is more powerful. The check for an i within $- is to make sure your shell is interactive, as it is a waste to start bash-completion in a non-interactive shell. --=20 Eric Blake eblake AT redhat DOT com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enig92F14CC103D159D74C8F911D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkuH0mAACgkQ84KuGfSFAYCx+ACdHuAQmrQcHjuVN6cjVOuLmoMN 3L4An3Hh6k2xmJS57NF+ffBw4XTljIN1 =vlba -----END PGP SIGNATURE----- --------------enig92F14CC103D159D74C8F911D--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |