panzi 3 days ago

You need to ensure that user_input doesn't start with `-`. You can do that by forcing an absolute path. Some programs accept `--` as a marker that any arguments after that are non-options.

1
pwdisswordfishz 1 day ago

No need for an absolute path, just a './' prefix.

panzi 16 hours ago

Yes, but running it through a function that turns it into an absolute path is a way to ensure that. A way. An easy way.

account42 1 day ago

Unless the path was already absolute.