Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
7666 (7666@comp.lain.la)'s status on Saturday, 05-Apr-2025 02:40:18 JST 7666
found that trailing whitespace in the parameter of a bash tool i use would make that tool fail to find explicit filenames. rather than rely on the user (me) to strip whitespace, my solution handles that for the user instead and is very simple.
before: $1
after: *$1*
of course, said user had better not accidentally provide an input string that matches more than one file.