On 7/7/06, Joel VanderWerf <vjoel / path.berkeley.edu> wrote:
>
> What about
>
> path = Pathname[''] / 'usr' / 'local'  #=> #<Pathname:/usr/local>
>
> A bit more palatable (?) without affecting String.

Even better would be for [] to split on "/" itself for literal paths:

path = Pathname['/usr/local/src']
path = Pathname['/usr']/foo/bar

martin