* Changes in process spawning break perl system() function
@ 2015-03-17 4:52 LRN
2015-03-17 10:50 ` Achim Gratz
2015-03-17 11:00 ` Corinna Vinschen
0 siblings, 2 replies; 6+ messages in thread
From: LRN @ 2015-03-17 4:52 UTC (permalink / raw)
To: cygwin
[-- Attachment #1.1: Type: text/plain, Size: 1258 bytes --]
How to reproduce:
1) create a shell script (say, /usr/bin/shellscript) containing this:
#!/bin/sh
echo ${0##*/}
2) create a symlink (say, /usr/bin/asymlink) that points to shellscript
3) create a perl script (say, /usr/bin/perlscript) containing this:
#! /usr/bin/perl -w
system '/usr/bin/asymlink';
4) run /usr/bin/perlscript
Expected results:
"asymlink" should be echoed by the shellscript when it is run by perlscript
Actual results:
"shellscript" is echoed instead
This affects 1.7.35.
I've tried various cygwin dll snapshots, everything is fine (symlink name is
echoed) with cygwin1-20150210.dll, cygwin1-20150211.dll breaks things first (a
full DOS path to shellscript is echoed), then from cygwin1-20150215.dll and
onward the target script name is echoed, as described above.
Symlink can be a Cygwin symlink or a native symlink, doesn't matter.
The use-case for this is autoconf wrapper (a shell script) that is being run by
autoreconf (a perl script) and uses the contents of $0 to find different
versions of autoconf, expecting $0 to be something like /usr/bin/autoconf, but
getting things like /usr/share/autotools/ac-wrapper.sh instead.
--
O< ascii ribbon - stop html email! - www.asciiribbon.org
[-- Attachment #1.2: 0x922360B0.asc --]
[-- Type: application/pgp-keys, Size: 1747 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Changes in process spawning break perl system() function
2015-03-17 4:52 Changes in process spawning break perl system() function LRN
@ 2015-03-17 10:50 ` Achim Gratz
2015-03-17 11:00 ` Corinna Vinschen
1 sibling, 0 replies; 6+ messages in thread
From: Achim Gratz @ 2015-03-17 10:50 UTC (permalink / raw)
To: cygwin
LRN <lrn1986 <at> gmail.com> writes:
> This affects 1.7.35.
I can confirm this for the latest snapshot also:
CYGWIN_NT-6.3 CYGWIN 1.7.36(0.287/5/3) 2015-03-11 12:02 x86_64 Cygwin
Regards,
Achim.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Changes in process spawning break perl system() function
2015-03-17 4:52 Changes in process spawning break perl system() function LRN
2015-03-17 10:50 ` Achim Gratz
@ 2015-03-17 11:00 ` Corinna Vinschen
2015-03-17 12:05 ` LRN
2015-03-17 12:09 ` Achim Gratz
1 sibling, 2 replies; 6+ messages in thread
From: Corinna Vinschen @ 2015-03-17 11:00 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 924 bytes --]
On Mar 17 03:34, LRN wrote:
> How to reproduce:
> 1) create a shell script (say, /usr/bin/shellscript) containing this:
>
> #!/bin/sh
> echo ${0##*/}
>
> 2) create a symlink (say, /usr/bin/asymlink) that points to shellscript
>
> 3) create a perl script (say, /usr/bin/perlscript) containing this:
>
> #! /usr/bin/perl -w
> system '/usr/bin/asymlink';
>
> 4) run /usr/bin/perlscript
>
> Expected results:
> "asymlink" should be echoed by the shellscript when it is run by perlscript
>
> Actual results:
> "shellscript" is echoed instead
>
> This affects 1.7.35.
Thanks for the report. I applied a fix for that and uploaded new
snapshots to https://cygwin.com/snapshots/
Could you please try them and report back?
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Changes in process spawning break perl system() function
2015-03-17 11:00 ` Corinna Vinschen
@ 2015-03-17 12:05 ` LRN
2015-03-17 13:48 ` Corinna Vinschen
2015-03-17 12:09 ` Achim Gratz
1 sibling, 1 reply; 6+ messages in thread
From: LRN @ 2015-03-17 12:05 UTC (permalink / raw)
To: cygwin
[-- Attachment #1.1: Type: text/plain, Size: 948 bytes --]
On 17.03.2015 13:51, Corinna Vinschen wrote:
> On Mar 17 03:34, LRN wrote:
>> How to reproduce:
>> 1) create a shell script (say, /usr/bin/shellscript) containing this:
>>
>> #!/bin/sh
>> echo ${0##*/}
>>
>> 2) create a symlink (say, /usr/bin/asymlink) that points to shellscript
>>
>> 3) create a perl script (say, /usr/bin/perlscript) containing this:
>>
>> #! /usr/bin/perl -w
>> system '/usr/bin/asymlink';
>>
>> 4) run /usr/bin/perlscript
>>
>> Expected results:
>> "asymlink" should be echoed by the shellscript when it is run by perlscript
>>
>> Actual results:
>> "shellscript" is echoed instead
>>
>> This affects 1.7.35.
>
> Thanks for the report. I applied a fix for that and uploaded new
> snapshots to https://cygwin.com/snapshots/
>
> Could you please try them and report back?
>
>
Tried cygwin1-20150317.dll, the bug is fixed.
--
O< ascii ribbon - stop html email! - www.asciiribbon.org
[-- Attachment #1.2: 0x922360B0.asc --]
[-- Type: application/pgp-keys, Size: 1747 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Changes in process spawning break perl system() function
2015-03-17 12:05 ` LRN
@ 2015-03-17 13:48 ` Corinna Vinschen
0 siblings, 0 replies; 6+ messages in thread
From: Corinna Vinschen @ 2015-03-17 13:48 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]
On Mar 17 14:00, LRN wrote:
> On 17.03.2015 13:51, Corinna Vinschen wrote:
> > On Mar 17 03:34, LRN wrote:
> >> How to reproduce:
> >> 1) create a shell script (say, /usr/bin/shellscript) containing this:
> >>
> >> #!/bin/sh
> >> echo ${0##*/}
> >>
> >> 2) create a symlink (say, /usr/bin/asymlink) that points to shellscript
> >>
> >> 3) create a perl script (say, /usr/bin/perlscript) containing this:
> >>
> >> #! /usr/bin/perl -w
> >> system '/usr/bin/asymlink';
> >>
> >> 4) run /usr/bin/perlscript
> >>
> >> Expected results:
> >> "asymlink" should be echoed by the shellscript when it is run by perlscript
> >>
> >> Actual results:
> >> "shellscript" is echoed instead
> >>
> >> This affects 1.7.35.
> >
> > Thanks for the report. I applied a fix for that and uploaded new
> > snapshots to https://cygwin.com/snapshots/
> >
> > Could you please try them and report back?
> >
> >
>
> Tried cygwin1-20150317.dll, the bug is fixed.
Thanks for testing!
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Changes in process spawning break perl system() function
2015-03-17 11:00 ` Corinna Vinschen
2015-03-17 12:05 ` LRN
@ 2015-03-17 12:09 ` Achim Gratz
1 sibling, 0 replies; 6+ messages in thread
From: Achim Gratz @ 2015-03-17 12:09 UTC (permalink / raw)
To: cygwin
Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> Thanks for the report. I applied a fix for that and uploaded new
> snapshots to https://cygwin.com/snapshots/
>
> Could you please try them and report back?
Fix confirmed.
Regards,
Achim
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-03-17 13:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-17 4:52 Changes in process spawning break perl system() function LRN
2015-03-17 10:50 ` Achim Gratz
2015-03-17 11:00 ` Corinna Vinschen
2015-03-17 12:05 ` LRN
2015-03-17 13:48 ` Corinna Vinschen
2015-03-17 12:09 ` Achim Gratz
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).