sscott33 / paths.bash

A directory bookmarking tool/system for Bash users.
MIT License
0 stars 0 forks source link

pp needs to reject incorrect bookmark names #5

Closed sscott33 closed 1 year ago

sscott33 commented 1 year ago

If a supposed bookmark name is passed to pp but it does not exist, then pp will only print a newline character for that bookmark name. An error should be printed instead, and pp should return. This should be detected and reported before pp prints any bookmarks. It may be acceptable to print prior correct bookmarks (and simpler to implement), but this may be confusing behavior.

sscott33 commented 1 year ago

This is now a defunct UI concern. At present (v2.0.0), if pp fails the direct lookup, it tries regex lookup. pp should not complain if regex lookup fails and returns no results. In other words, pp cannot know that the user did not intend to use regex lookup.