From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: Bibtex and latex export Date: Fri, 08 Oct 2010 14:33:10 -0400 Message-ID: <16036.1286562790@gamaville.dokosmarshall.org> References: <4C9122FE.1080306@ccbr.umn.edu> <87aamra78p.fsf@mundaneum.com> <87pqvntldc.wl%ucecesf@ucl.ac.uk> <87d3rni6ea.fsf@Rainer.invalid> <87mxqqpjcf.wl%ucecesf@ucl.ac.uk> <18908.1286458199@gamaville.dokosmarshall.org> <87zkuqdrzr.wl%ucecesf@ucl.ac.uk> <87lj68zzmc.wl%ucecesf@ucl.ac.uk> <87pqvkimtx.fsf@Rainer.invalid> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=55923 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4Hyi-0006it-1E for emacs-orgmode@gnu.org; Fri, 08 Oct 2010 14:47:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P4Hl4-0006t9-No for emacs-orgmode@gnu.org; Fri, 08 Oct 2010 14:33:32 -0400 Received: from vms173019pub.verizon.net ([206.46.173.19]:62668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P4Hl4-0006t2-JR for emacs-orgmode@gnu.org; Fri, 08 Oct 2010 14:33:30 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L9Z00J04I7AIIA0@vms173019.mailsrvcs.net> for emacs-orgmode@gnu.org; Fri, 08 Oct 2010 13:33:11 -0500 (CDT) In-reply-to: Message from Achim Gratz of "Fri, 08 Oct 2010 20:03:22 +0200." <87pqvkimtx.fsf@Rainer.invalid> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Achim Gratz Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Achim Gratz wrote: > Otherwise you can't really use range expressions or character classes at > all since they either permit illegal drive letters or might not work > with due to the bugs in older versions of grep... it would however be > possible to spell out each drive letter bot in upper and lower case, > although that handicaps the permissible length of the filename (if the > "-i" switch wasn't broken in some locales one could use it and save one > version of the cases): > > echo "$command_line_filename" | LC_ALL=C $EGREP \ > '^(/|[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]:/)' >&6 \ > || command_line_filename="./$command_line_filename" > > *Shudder* :-) > Indeed :-) There is a locale-independent range spec for regexps: [:alpha:] would match the indicated class in any locale. See the egrep man page for more of these. I sent some mail to bug-texinfo@gnu.org suggesting this, so we'll see. I also found out to my surprise from the previously posted bug-texinfo thread, that the ASCII characters between 'Z' and 'a' are (or were) legal drive letters, but the assumption is that nobody would be so foolish as to use them any more, so not checking for them is OK. Nick