Re: How to test if a link exists
Mark Young writes: > A little off topic but are -a and -e identical? -a is non-standard. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
Re: How to test if a link exists
Mark Young wrote: > A little off topic but are -a and -e identical? As file existence tests, yes. -a also serves as logical "and".
Re: locale specific ordering in EN_US -- why is a
On 5/21/12 3:42 PM, Chet Ramey wrote: > On 5/21/12 3:27 PM, Aharon Robbins wrote: > > This is why I started the Campaign For Rational Range Interpretation, > > now part of gawk and I believe in the most recent grep also, which > > returns us to the sane days of yesteryear, where [a-z] got only lowercase > > letters and [A-Z] got only uppercase ones. > > The next version of bash will have a shell option to enable this behavior. > It's in the development snapshots if anyone wants to try it out now. So what about setting globasciiranges on by default? There is a backwards compat issue, but it's probably less of a problem than having inconsistent handling of these ranges between different systems, and different tools like grep, gawk, sed, etc... To me it seems best to at least be consistent with each other, and with the intent of POSIX >= 2001. thanks, Pádraig.
Re: locale specific ordering in EN_US -- why is a
On 6/26/13 10:15 AM, Pádraig Brady wrote: > On 5/21/12 3:42 PM, Chet Ramey wrote: >> On 5/21/12 3:27 PM, Aharon Robbins wrote: >>> This is why I started the Campaign For Rational Range Interpretation, >>> now part of gawk and I believe in the most recent grep also, which >>> returns us to the sane days of yesteryear, where [a-z] got only lowercase >>> letters and [A-Z] got only uppercase ones. >> >> The next version of bash will have a shell option to enable this behavior. >> It's in the development snapshots if anyone wants to try it out now. > > So what about setting globasciiranges on by default? The plan is to eventually have it enabled by default, and I will add a configure option to build bash with it enabled by default, but there has to be a transition period. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/