about summary refs log tree commit diff
path: root/xe.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-01-16 22:21:23 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-01-16 22:21:23 +0100
commitf79277999db1361e265650eeb8b9239dc271be93 (patch)
treed672fea258259f3f0490c241be8c6532a6ee0b4d /xe.c
parent65fc8164e4a7b4f9b4254ac0a561082ea1682be0 (diff)
downloadxe-f79277999db1361e265650eeb8b9239dc271be93.tar.gz
xe-f79277999db1361e265650eeb8b9239dc271be93.tar.xz
xe-f79277999db1361e265650eeb8b9239dc271be93.zip
fix callback to printf %s for -a
Diffstat (limited to 'xe.c')
-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");
 		}