Skip to content

Commit

Permalink
Add backtick to SHELL_CHARS.
Browse files Browse the repository at this point in the history
  • Loading branch information
WayneD committed Jan 5, 2023
1 parent f1e3434 commit 5c93ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion options.c
Original file line number Diff line number Diff line change
Expand Up @@ -2518,7 +2518,7 @@ static char SPLIT_ARG_WHEN_OLD[1];
**/
char *safe_arg(const char *opt, const char *arg)
{
#define SHELL_CHARS "!#$&;|<>(){}\"' \t\\"
#define SHELL_CHARS "!#$&;|<>(){}\"'` \t\\"
#define WILD_CHARS "*?[]" /* We don't allow remote brace expansion */
BOOL is_filename_arg = !opt;
char *escapes = is_filename_arg ? SHELL_CHARS : WILD_CHARS SHELL_CHARS;
Expand Down

0 comments on commit 5c93ded

Please sign in to comment.