X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4DD58660.3070401@redhat.com> References: <19A81F46A6B94CCE9372358896F3E86B AT cit DOT wayne DOT edu> <4DD58660 DOT 3070401 AT redhat DOT com> Date: Fri, 20 May 2011 09:31:48 +0200 Message-ID: Subject: Re: -a $HOME/.bashrc and -a ~/.bashrc produce different results From: Csaba Raduly To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Thu, May 19, 2011 at 11:06 PM, Eric Blake wrote: > "$HOME" expands $HOME, but "~/.bashrc" does _not_ expand ~. =A0For > tilde-expansion to occur, it must be unquoted. Not only that, it has to be the first character: 3.5.2 Tilde Expansion --------------------- If a word begins with an unquoted tilde character (`~'), ... I've been bitten by this in a makefile when I wrote: SOMETOOL :=3D ~/sometool CPPFLAGS +=3D -I$(SOMETOOL)/include and -I~/sometool/include was not expanded. I've made a rule to only use ${HOME} in makefiles. Csaba --=20 GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torv= alds "People disagree with me. I just ignore them." -- Linus Torvalds -- 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