delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/21/16:37:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sat, 21 Feb 2004 16:36:56 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: problem? with strace: what type of path is expected for --output=<file>
Message-ID: <20040221213656.GA4645@redhat.com>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4037CC83 DOT 4000705 AT cox DOT net>
Mime-Version: 1.0
In-Reply-To: <4037CC83.4000705@cox.net>
User-Agent: Mutt/1.4.1i
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

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.

>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 '='.

>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 "~".

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019