X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-4.4 required=5.0	tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL
X-Spam-Check-By: sourceware.org
Message-ID: <50083976.8020804@hones.org.uk>
Date: Thu, 19 Jul 2012 17:44:38 +0100
From: Cliff Hones <cliff@hones.org.uk>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: length in gawk returns wrong value
References: <loom.20120719T103849-659@post.gmane.org> <20120719092024.GA31055@calimero.vinschen.de> <loom.20120719T131247-62@post.gmane.org> <20120719113927.GH31055@calimero.vinschen.de> <CAEhDDbCJyHY-MWPCZ5=OQJFyvohuUU4AFsoPDzFudLQgfb-8Jw@mail.gmail.com> <BLU0-SMTP132D949A0B60293ECBEAD2CED90@phx.gbl> <20120719145544.GL31055@calimero.vinschen.de> <BLU0-SMTP1675452B38FDC1ABC528A69CED90@phx.gbl>
In-Reply-To: <BLU0-SMTP1675452B38FDC1ABC528A69CED90@phx.gbl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/) (knockando.watchfront.net.uk)
X-Spam-Report: knockando.watchfront.net.uk has scanned this email for spam. Results:-	T_RP_MATCHES_RCVD=-0.01 (total -0.0, current threshold 5.0)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 19/07/2012 17:16, Aaron Schneider wrote:

> Looking at /etc/profile.d/lang.csh
>     if ( $?LC_ALL == 0 && $?LC_CTYPE == 0 && $?LANG == 0 ) setenv LANG `/usr/bin/locale -uU`
> 
> I wonder why in my system the setenv command does not exist:
> $ setenv
> -bash: setenv: command not found
> 
> and why the if structure is not followed
>  if (test for true) then command ; fi
> 
> On the other side, /etc/profile.d/lang.sh seems to be ok.

I think you'll find the clue is the ".csh" extension.  That syntax is
for the C-shell, not bash.

-- Cliff



--
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

