mirror of
https://github.com/tmux/tmux.git
synced 2025-04-08 01:55:21 +00:00
source-file -q needs to apply to glob(3) too.
This commit is contained in:
parent
5330a2a85d
commit
561b5c6fdb
@ -55,11 +55,13 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
glob_t g;
|
glob_t g;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
quiet = args_has(args, 'q');
|
||||||
if (glob(args->argv[0], 0, NULL, &g) != 0) {
|
if (glob(args->argv[0], 0, NULL, &g) != 0) {
|
||||||
|
if (quiet && errno == ENOENT)
|
||||||
|
return (CMD_RETURN_NORMAL);
|
||||||
cmdq_error(item, "%s: %s", args->argv[0], strerror(errno));
|
cmdq_error(item, "%s: %s", args->argv[0], strerror(errno));
|
||||||
return (CMD_RETURN_ERROR);
|
return (CMD_RETURN_ERROR);
|
||||||
}
|
}
|
||||||
quiet = args_has(args, 'q');
|
|
||||||
|
|
||||||
retval = CMD_RETURN_NORMAL;
|
retval = CMD_RETURN_NORMAL;
|
||||||
for (i = 0; i < g.gl_pathc; i++) {
|
for (i = 0; i < g.gl_pathc; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user