X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4F50718D.9030909@cs.cmu.edu> Date: Thu, 01 Mar 2012 23:06:53 -0800 From: Paul Allen Newell User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19 MIME-Version: 1.0 To: cygwin AT cygwin DOT com CC: "Newell, Paul" Subject: Re: [SOLVED:] Re: make producing basename error that can't be captured by "make &> make.out" References: <4F5035D0 DOT 9070502 AT cs DOT cmu DOT edu> <4F506393 DOT 1030502 AT gmail DOT com> <4F5067E0 DOT 5000203 AT cs DOT cmu DOT edu> <4F506DD1 DOT 8080901 AT gmail DOT com> In-Reply-To: <4F506DD1.8080901@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 On 3/1/2012 10:50 PM, Dave Korn wrote: > > I think it's because aliases are just simple text substitutions. So if you > have 'make' being transformed to 'settitle Making $(basename $PWD)&& make > "$@"' then you would get 'make>& make.out' becoming 'settitle Making > $(basename $PWD)&& make "$@">& make.out' and as you see the redirect only > gets applied to the command after the '&&'. > > cheers, > DaveK > Dave: Ah, I understand. I wrapped the whole alias in paras and am now getting all errors put into make.out, including the basename. I'll go and figure out some way to filter $(PWD) to be acceptable to basename. Many thanks for taking the time to help, Paul -- 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