When the path with a trailing slash like path/to/dir/ is set to the PATH argument, the file paths in the result become doubled slash paths like path/to/dir//found/file.txt.
It would be good to clean the paths.
example::
$ tree
.
└── examples
├── a
│ └── A.txt
├── b
│ └── B.txt
└── c
4 directories, 2 files
$ pt hello examples/
examples//a/A.txt
1:hello
examples//b/B.txt
1:hello world
When the path with a trailing slash like
path/to/dir/
is set to the PATH argument, the file paths in the result become doubled slash paths likepath/to/dir//found/file.txt
.It would be good to clean the paths.
example::