Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Fri, 1 Apr 2005 11:06:18 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Webb Roberts cc: cygwin AT cygwin DOT com Subject: Re: Change to /etc/profile (Attn: base-files maintainer) In-Reply-To: <424D6CF0.3040104@gtri.gatech.edu> Message-ID: References: <424D6CF0 DOT 3040104 AT gtri DOT gatech DOT edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 1 Apr 2005, Webb Roberts wrote: > I would suggest a small change to /etc/profile. > > /etc/profile is being run by bash, which has pretty substantial filename > expansion. For example, > > echo [a-z]ib > > Will respond 'lib' if there is a lib directory. In /etc/profile, there is a > tr command: > > /usr/bin/tr [:upper:] [:lower:] > > which is hitting a couple of directories in my $HOME, namely 'r' and 'w'. So > the tr is getting weird arguments (tr r w r) and complaining. This could be > fixed by changing that part to > > /usr/bin/tr '[:upper:]' '[:lower:]' > > Please let me know if there's a bug tracking system, or similar, to which > you'd rather me submit this bug report. No, this is exactly the right place to submit this. I knew there was something that was making me uneasy about the above code, but couldn't think of the reason. Nice catch -- thanks for reporting it. John, I think it's a very good idea -- can you merge this in? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/