dagolden / Path-Tiny

File path utility
41 stars 59 forks source link

Should escape File::Glob metacharacters before tilde expansion #201

Closed regina-verbae closed 1 year ago

regina-verbae commented 6 years ago

The following example paths all cause an uninitialized value $homedir in substitution error when passing to path:

~path[123]
~path*
~path?

The following examples create the wrong path:

~path\\x
    # returns '~pathx'
~path{a}
    # return '~patha'

All metacharacters (besides ~) used by File::Glob should be escaped before passing the path to bsd_glob. Pull request forthcoming.

xdg commented 1 year ago

Fixed with d40a3bf and 139280c