This is the mail archive of the
mailing list for the Cygwin project.
cygpath and partial normalization of trailing /.
- From: Poor Yorick <com dot cygwin dot cygwin at pooryorick dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 05 Oct 2015 06:29:37 -0600
- Subject: cygpath and partial normalization of trailing /.
- Authentication-results: sourceware.org; auth=none
Currently, in a sh shell,
. With the -m switch, the same pattern is followed, and in the case of
trailing, \. sequence, the dot is removed but the backslash is retained.
led to a bug (https://sourceforge.net/p/tkimg/bugs/84/) in a build
where the autoconf script looked something like this:
Because of the trailing backslash in the output of cygpath, the final
quote ended up getting escaped.
Rather than normalizing half of it away and leaving half of it, Wouldn't
better to either not normalize the trailing slash-dot sequence at all,
completely normalize it away? If that which is delimited is removed, it
seem to make sense to removed the delimiter as well.
The case that the incoming pathname already has a trailing delimiter is
that I think is already recognized and differentiated.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple