[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Get Scriptname Without the Path
- From: Miles Bader <miles@...>
- Date: Thu, 03 Apr 2008 07:04:34 +0900
"steve donovan" <steve.j.donovan@gmail.com> writes:
> 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!
Eh? Why do you think "the only reliable way is not to use patterns"?
-Miles
--
Neighbor, n. One whom we are commanded to love as ourselves, and who does all
he knows how to make us disobedient.