nuta / nsh

A command-line shell like fish, but POSIX compatible.
906 stars 34 forks source link

Fix pattern matching when already sitting in the directory that is defined with absolute value in the searched pattern #27

Closed svekko closed 2 years ago

svekko commented 2 years ago

When located in the directory (e.g. /etc) then absolute location pattern matching for that single directory doesn't work as expected. Example:

Located in home directory (works fine):

in_home

vs located in /etc (/etc is expected to be in the results, but is not):

in_etc

nuta commented 2 years ago

Thanks for the fix 😃