aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar BanceDev 2025-02-11 10:54:16 -0500
committerGravatar BanceDev 2025-02-11 10:54:16 -0500
commit640221c63876daac3bf061f8a77716ddfd21ee18 (patch)
treeeed44479e6568de37c93799ea9c144e95cd809c6
parentadded wildcard globbing (diff)
add globbing to command mode
-rw-r--r--src/lush.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lush.c b/src/lush.c
index 3d80c5f..2925272 100644
--- a/src/lush.c
+++ b/src/lush.c
@@ -1479,7 +1479,11 @@ int main(int argc, char *argv[]) {
if (status == -1) {
fprintf(stderr, "lush: Expected end of quoted string\n");
- } else if (lush_run(L, args, status) != 0) {
+ } else {
+ lush_expand_globs(args);
+ }
+
+ if (lush_run(L, args, status) != 0) {
exit(1);
}