Closed Abbotta4 closed 4 years ago
Appreciate the pointer on the arguments. Funny enough, I had already solved the issue on a previous version of the script and haven't implemented that on the new one yet. Talking about which, the interactive shell is required for alias support.
from gnu.org:
$*
here does not handle arguments with spaces in them, e.g.devour mpv a\ video\ with\ spaces.mp4
, but"$@"
does.$SHELL -c "foo"
spawns another shell process, which uses more resources than is necessary. Using the same shell process that is running the script should work just fine.