Skip to content

Commit 60ebaba

Browse files
committed
psh/echo: allow quote mark output
Let `echo` command output the arguments as received from parser, do not eat " quote mark. JIRA: RTOS-512
1 parent dac8f45 commit 60ebaba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psh/echo/echo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static int psh_echo(int argc, char **argv)
9999
if (argv[i][j] == '$') {
100100
j += psh_echo_printVar(&argv[i][j + 1], output);
101101
}
102-
else if (argv[i][j] != '"') { /* Primitive - just eat "" */
102+
else {
103103
fputc(argv[i][j], output);
104104
}
105105
}

0 commit comments

Comments
 (0)