www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
X-Authenticated: | #14884790 |
Message-ID: | <008801c6dfa1$cfce72a0$140110ac@LOGUCO> |
From: | "Logu" <logsnaath AT gmx DOT net> |
To: | <cygwin AT cygwin DOT com> |
Cc: | "Eric Blake" <ebb9 AT byu DOT net> |
References: | <1026800198 DOT 20060923122829 AT ukr DOT name> <002801c6defd$93958660$140110ac AT LOGUCO> <4515D901 DOT 3020809 AT byu DOT net> |
Subject: | Re: tr command suddenly behaves differently |
Date: | Sun, 24 Sep 2006 11:42:28 +0530 |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Outlook Express 6.00.2900.2869 |
X-Y-GMX-Trusted: | 0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
> There's your problem. You didn't quote properly. Try: > $ echo [:upper:] [:lower:] > to see what you were really invoking, then try: > $ tr '[:upper:]' '[:lower:]' > to do what you meant. > > My guess is that you have a file in your home directory that uses a single > letter, so the bracket expansion of bash took effect and expanded to that > filename rather than passing through the regex that you thought you typed. > Thanks I had a filename "l" which was giving trouble. > By the way, none of this is cygwin specific. > The /etc/profile had this code hence I thought it is bug in the cygwin system. May be this is fixed in the newer versions. ----------------------------- case "`echo "$0" | /usr/bin/tr [:upper:] [:lower:]`" in bash | -bash | */bash | \ bash.exe | -bash.exe | */bash.exe ) # Set a HOSTNAME variable HOSTNAME=`hostname` export HOSTNAME ----------------------------- Thanks -logu -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |