lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


The only really reliable method is not to use patterns; use
p:sub(i,i) for i = #p,1 and check for slash/backslash.

A similar problem involves finding extensions; Linux paths
are full of dots that don't mean extensions!

And don't accept backslash on Unix ;)

steve d.


On Wed, Apr 2, 2008 at 11:06 AM, ketmar <ketmar@ic.km.ua> wrote:
> On Wed, 2 Apr 2008 10:00:36 +0100
>
> "Robert Raschke" <rtrlists@googlemail.com> wrote:
>
>
> > Fair enough. But being of a practical bent, I honestly don't care
>  > about that case.
>  but it's "working acceptable", not "working right". %-)
>
>
>  > Out of interest, for what do you use filenames with backslashes?
>  for example, i have scripts like "mp3\ogg_tagger". it's easy for me to
>  remember it this way (and don't try to "tag" wavs with it %-).
>