// This source code is released into the public domain. export module nihil.posix:execlp; import nihil.std; import nihil.util; import :argv; import :execvp; namespace nihil { // execlp: equivalent to execvp, except the arguments are passed as a // variadic pack of string-like objects. export [[nodiscard]] auto execlp(std::filesystem::path const &file, auto &&...args) -> std::expected { return execvp(file, argv({std::string_view(args)...})); } } // namespace nihil