summaryrefslogtreecommitdiffstats
path: root/commands/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/global.c')
-rw-r--r--commands/global.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/commands/global.c b/commands/global.c
index f14df3821a..581913d289 100644
--- a/commands/global.c
+++ b/commands/global.c
@@ -37,6 +37,11 @@ static int do_global(int argc, char *argv[])
}
}
+ if (argc == optind) {
+ globalvar_print();
+ return 0;
+ }
+
argc -= optind;
argv += optind;