Remove fixed parameter from expand_single_with_glob
@@ -329,9 +329,9 @@ | ||
329 | 329 | * If successful, the resulting word is returned as a newly malloced string. |
330 | 330 | * On error, an error message is printed and NULL is returned. |
331 | 331 | * On error in a non-interactive shell, the shell exits. */ |
332 | -char *expand_single_with_glob(const wordunit_T *arg, tildetype_T tilde) | |
332 | +char *expand_single_with_glob(const wordunit_T *arg) | |
333 | 333 | { |
334 | - wchar_t *exp = expand_single(arg, tilde, Q_WORD, ES_QUOTED_HARD); | |
334 | + wchar_t *exp = expand_single(arg, TT_SINGLE, Q_WORD, ES_QUOTED_HARD); | |
335 | 335 | char *result; |
336 | 336 | |
337 | 337 | if (exp == NULL) |
@@ -99,8 +99,7 @@ | ||
99 | 99 | const struct wordunit_T *w, |
100 | 100 | tildetype_T tilde, quoting_T quoting, escaping_T escaping) |
101 | 101 | __attribute__((malloc,warn_unused_result)); |
102 | -extern char *expand_single_with_glob( | |
103 | - const struct wordunit_T *arg, tildetype_T tilde) | |
102 | +extern char *expand_single_with_glob(const struct wordunit_T *arg) | |
104 | 103 | __attribute__((malloc,warn_unused_result)); |
105 | 104 | |
106 | 105 | extern wchar_t *extract_fields( |
@@ -446,7 +446,7 @@ | ||
446 | 446 | char *expand_redir_filename(const struct wordunit_T *filename) |
447 | 447 | { |
448 | 448 | if (is_interactive) { |
449 | - return expand_single_with_glob(filename, TT_SINGLE); | |
449 | + return expand_single_with_glob(filename); | |
450 | 450 | } else { |
451 | 451 | wchar_t *result = expand_single(filename, TT_SINGLE, Q_WORD, ES_NONE); |
452 | 452 | if (result == NULL) |