X-Authentication-Warning: ixi.eng.ascend.com: meyering set sender to meyering AT ascend DOT com using -f Sender: meyering AT ascend DOT com To: Eli Zaretskii Cc: tr AT eth DOT net, djgpp-workers AT delorie DOT com Subject: Re: Sh-utils 2.0j sources uploaded References: <200008110941 DOT CAA29407 AT drawbridge DOT ascend DOT com> <200008120825 DOT BAA03861 AT drawbridge DOT ascend DOT com> From: Jim Meyering In-Reply-To: "Eli Zaretskii"'s message of "Sat, 12 Aug 2000 11:35:42 +0200" Date: 12 Aug 2000 12:15:10 +0200 Message-ID: Lines: 27 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6.92 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reply-To: djgpp-workers AT delorie DOT com "Eli Zaretskii" writes: | > From: Jim Meyering | > Date: 11 Aug 2000 20:01:59 +0200 | > | > | - sed 's/^[^:]*: / /' < "$tmpdepfile" >> "$depfile" | > | + sed 's/^\([A-z]:\/\)\{0,1\}[^:]*: / /' < "$tmpdepfile" >> "$depfile" | > | ## This next piece of magic avoids the `deleted header file' problem. | > | ## The problem is that when a header file which appears in a .P file | > | ## is deleted, the dependency causes make to die (because there is | > | > Also, A-z is not portable for some locale settings. | > Use abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ instead. | | The DOS/Windows drive letters are ASCII, so I think [A-Za-z] should be | good enough. (The use of [A-z] was on purpose: in the C locale it I remember that you deliberately used A-z to match those other six characters. My point is that if you really want to depend on the C local, then you should make it explicit. With some other locales, A-z contains characters that are not valid drive letters. So it's more portable to enumerate the acceptable letters. Now (with ibm360-linux) we have a legitimate reason to accommodate EBCDIC. | includes the 6 letters between Z and a which DOS allows to use as | drive letters. But I don't think it's worth the hassle to deal with | those 6 letters, which are almost never used.)