Skip to content

Commit 2f52925

Browse files
authored
Fix tmux script when having PATH with spaces (#571)
1 parent 748ab2e commit 2f52925

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bin/pg_autoctl/cli_do_tmux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ tmux_setenv(PQExpBuffer script, const char *sessionName, const char *root)
477477
exit(EXIT_CODE_INTERNAL_ERROR);
478478
}
479479

480-
tmux_add_command(script, "set-environment -t %s PATH %s", sessionName, PATH);
480+
tmux_add_command(script, "set-environment -t %s PATH \"%s\"", sessionName, PATH);
481481

482482
for (int i = 0; xdg[i][0] != NULL; i++)
483483
{

0 commit comments

Comments
 (0)