This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Strange cygpath/Perl 5.8 interaction?


In bash:

  $ echo "\"`cygpath -w /c/temp`\""
  "c:\temp"


But in Perl:

  $a = `cygpath -w /c/temp`;
  print "|$a|";

produces

|c:\temp
|

I.e., Perl sees an extra \n at the end of the string. I looked at
the source for cygpath and it doesn't seem to be adding a \n, so
I suspect the problem is an unforeseen interaction between Cygwin
and Perl's backtick operator.  Can anyone shed light on this topic?

Jim Garrison
jhg@athensgroup.com

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]