quote_shell_arg Function

private function quote_shell_arg(raw_path) result(quoted_path)

Wrap a filesystem path for the shell used by execute_command_line.

Paths containing a double-quote character are rejected with error stop because they cannot be safely represented in the generated command string.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: raw_path

Return Value character(len=len_trim)