ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17721] - problem with wrapper shell script if $0 is a relative symlink
Date Tue, 25 Mar 2003 15:24:23 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17721>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17721

problem with wrapper shell script if $0 is a relative symlink





------- Additional Comments From martin@macrospace.com  2003-03-25 15:24 -------
The Solaris man page for expr doesn't seem to document whether it implicitly
anchors the regex. However:

	$ expr foo : '/.*' > /dev/null ; echo $?
	1
	$ expr /foo : '/.*' > /dev/null ; echo $?
	0
	$ expr x/foo : '/.*' > /dev/null ; echo $?
	1

so it looks like it does.

I don't know what this will do to Cygwin. It should be fine as long as
it's still true that exactly those paths starting with '/' are absolute.
I think this is the case (otherwise loads of software would break), but
I don't really know Cygwin so I can't say for sure.

Mime
View raw message