New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perl's "do" operator with a variety of absolute paths under Cygwin #7411
Comments
From rbn@vitesse.comHello there, (This question was also posted to cygwin@cygwin.com). I've discovered the following oddity with Cygwin Perl v. 5.8.2's "do" operator: The following doesn't: The funny thing is that almost any other Perl function/operator works with Also, other Cygwin programs handle the form well. For instance What is the problem with the "do" operator? /René Bøje Nielsen P.S. I just downloaded and compiled v.5.8.4 under Cygwin, and found it |
From @smpeters
This problem still exists as of Perl 5.8.5. For example... Steve Peters@WindowsPC /tmp/foo Steve Peters@WindowsPC /tmp/foo Oddly enough, Win32 works just fine in this case: C:\Documents and Settings\Steve Peters>perl -e"do |
The RT System itself - Status changed from 'new' to 'open' |
From @ysthOn Tue, Nov 02, 2004 at 05:43:57AM -0000, Steve Peters via RT wrote:
Inline Patch--- util.h.orig 2003-04-16 14:25:37.000000000 -0700
+++ util.h 2004-11-02 16:15:35.288769600 -0800
@@ -16,7 +16,7 @@
&& (isALNUM((f)[1]) || strchr("$-_]>",(f)[1])))))
#else /* !VMS */
-# ifdef WIN32
+# if defined(WIN32) || defined(__CYGWIN__)
# define PERL_FILE_IS_ABSOLUTE(f) \
(*(f) == '/' || *(f) == '\\' /* UNC/rooted path */ \
|| ((f)[0] && (f)[1] == ':')) /* drive name */
This affects only do and require and some odd code in gv.c that |
From @rgsYitzchak Scott-Thoennes wrote:
Looks sensible. Thanks, applied to blead as change 23468. |
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#30633 (status was 'resolved')
Searchable as RT30633$
The text was updated successfully, but these errors were encountered: