about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--xe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xe.c b/xe.c
index c134e4d..0fc55a8 100644
--- a/xe.c
+++ b/xe.c
@@ -307,7 +307,7 @@ main(int argc, char *argv[], char *envp[])
 			pusharg("-c");
 			pusharg(sflag);
 			pusharg("-");
-		} else if (optind == cmdend) {
+		} else if (optind >= cmdend) {
 			pusharg("printf");
 			pusharg("%s\\n");
 		}