From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125862 invoked by alias); 6 Dec 2016 17:57:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 125844 invoked by uid 89); 6 Dec 2016 17:57:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_40,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:may, H*r:forged, perkins, Perkins X-HELO: limerock01.mail.cornell.edu Received: from limerock01.mail.cornell.edu (HELO limerock01.mail.cornell.edu) (128.84.13.241) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Dec 2016 17:57:19 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock01.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id uB6HvHCG017878 for ; Tue, 6 Dec 2016 12:57:17 -0500 Received: from [192.168.1.9] (mta-68-175-148-36.twcny.rr.com [68.175.148.36] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id uB6HvGM5005652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Tue, 6 Dec 2016 12:57:16 -0500 Subject: Re: profile_d To: cygwin@cygwin.com References: <80d344c2-c2d2-fc10-ea6d-4b7ac27785a5@earthlink.net> From: Ken Brown Message-ID: <4ae30a35-5300-32d5-5001-b6c7df088fa4@cornell.edu> Date: Tue, 06 Dec 2016 17:57:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <80d344c2-c2d2-fc10-ea6d-4b7ac27785a5@earthlink.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Cornell-Gauge: Gauge=XXXXX X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00045.txt.bz2 On 12/6/2016 9:49 AM, Charlie Perkins wrote: > Hello anyone, > > Could someone tell me what profile_d does? > > There doesn't seem to be a man page, info, or any way I can find out! It's defined in /etc/profile, shortly before the call to 'profile_d sh'. The latter runs all the *.sh scripts in /etc/profile.d, with some fiddling to get locales right. > I'm getting the following errors from profile_d when /etc/profile > invokes 'profile_d sh': > >> -bash: [: too many arguments >> -bash: [: =: unary operator expected >> -bash: [: =: unary operator expected >> -bash: [: =: unary operator expected >> -bash: [: =: unary operator expected >> -bash: [: too many arguments >> -bash: [: =: unary operator expected >> -bash: [: =: unary operator expected >> -bash: [: =: unary operator expected >> -bash: [: =: unary operator expected >> -bash: [: =: unary operator expected I'm guessing that these errors are generated by the line if [ "${_LC_SAVE_}" = "null" ]; then in the definition of profile_d. Is LC_ALL defined in your environment? Does it have spaces in it? Ken -- 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