X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=gwYIF/FI7uBmJDFv 9qjUyuiXEjVoSga/stqbWAnYR2eGvCaGifjqRMZhlN+SZ1T1TAPd4EeW9audT1S7 /3ze7sesZbqoAc8qmnDlL26en/hcd2NIFSznp50Wz6X25fgZQ2jW4VWmY2xTz0iC j1YiZ8g6eaD2739dtT0AYEzA8JQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=L8YEko5lXxfUYmP7e20EPn EPYRQ=; b=e1KiASQjMLCcQgusiChWwDY+5+fvsGNJB6yqKI35PkF5BrJf+P/CXu dRGTlUcgbBifZkqgvjuAqxfhAmwxI0jfPcMT55x5ZRaAOrwsRPKPHPe8M6jnGdBk mYSTIjW2rMjTdg19obWqEiyDWHDivknESTOAD1ApUhWo8v9BIfjsY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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 X-CornellRouted: This message has been Routed already. Subject: Re: profile_d To: cygwin AT cygwin DOT com References: <80d344c2-c2d2-fc10-ea6d-4b7ac27785a5 AT earthlink DOT net> From: Ken Brown Message-ID: <4ae30a35-5300-32d5-5001-b6c7df088fa4@cornell.edu> Date: Tue, 6 Dec 2016 12:57:16 -0500 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 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