Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <4039625B.6000208@cox.net> Date: Sun, 22 Feb 2004 21:15:55 -0500 From: "David A. Cobb" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla Thunderbird 0.5+ (Windows/20040221) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: problem? with strace: what type of path is expected for --output= References: <4037CC83 DOT 4000705 AT cox DOT net> <20040221213656 DOT GA4645 AT redhat DOT com> In-Reply-To: <20040221213656.GA4645@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Christopher Faylor wrote: >On Sat, Feb 21, 2004 at 04:24:19PM -0500, David A. Cobb wrote: > > >>Perhaps the problem is whether strace likes cygwin paths, or wants >>Windoze paths: >> >> > >Nope. The problem is a cockpit error. > > Urm, no great surprise! >>506 $ touch ~/.xemacs/strace.out >>507 $ strace --output=~/.xemacs/strace.out "xemacs -debug-init >>-debug-paths 2>~/.xemacs/startup.log" >>strace.exe: can't open ~/.xemacs/strace.out: No such file or directory >> >> > >As on UNIX, "~" is expanded by the shell but only when it begins a word. >Shells don't expand things that are preceded by an '='. > > AHA!!! >>508 $ strace "xemacs -debug-init -debug-paths 2>~/.xemacs/startup.log" >>strace.exe: error creating process xemacs -debug-init -debug-paths >>2>~/.xemacs/startup.log, (error 2) >> >> > >You are telling strace to run a program called: > >"xemacs -debug-init -debug-paths 2>~/.xemacs/startup.log" > >Don't quote the arguments to strace. strace doesn't start a shell >to interpret things like 2> or "~". > > Also very helpful. Many thanks! -- David A. Cobb, Software Engineer, Public Access Advocate "By God's Grace, I am a Christian man; by my actions a great sinner." -- The Way of a Pilgrim: R.French, Tr. Life is too short to tolerate crappy software! -- 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/