public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* problem? with strace: what type of path is expected for --output=<file>
@ 2004-02-21 23:02 David A. Cobb
  2004-02-21 23:07 ` Christopher Faylor
  0 siblings, 1 reply; 3+ messages in thread
From: David A. Cobb @ 2004-02-21 23:02 UTC (permalink / raw)
  To: Cygwin General Discussion

Perhaps the problem is whether strace likes cygwin paths, or wants 
Windoze paths:

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problem? with strace: what type of path is expected for --output=<file>
  2004-02-21 23:02 problem? with strace: what type of path is expected for --output=<file> David A. Cobb
@ 2004-02-21 23:07 ` Christopher Faylor
  2004-02-23  3:47   ` David A. Cobb
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Faylor @ 2004-02-21 23:07 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problem? with strace: what type of path is expected for --output=<file>
  2004-02-21 23:07 ` Christopher Faylor
@ 2004-02-23  3:47   ` David A. Cobb
  0 siblings, 0 replies; 3+ messages in thread
From: David A. Cobb @ 2004-02-23  3:47 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-02-23  2:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-21 23:02 problem? with strace: what type of path is expected for --output=<file> David A. Cobb
2004-02-21 23:07 ` Christopher Faylor
2004-02-23  3:47   ` David A. Cobb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).