chiark / gitweb /
prefork: Insist on script (separately) with combined options
[chiark-utils.git] / cprogs / prefork.c
index 437923f88c3dbeb2ae0e49f4552eaf0e57015adc..425974c0ad5979aa6628aa20aee7dd661bd07407 100644 (file)
@@ -233,6 +233,9 @@ void process_opts(const char *const **argv_io) {
 
     shbang_opts(&split_argv, cmdinfos);
     /* sets interp */
+
+    if (!**argv_io)
+      badusage("no script argument (expected after combined #! options)");
   } else {
     shbang_opts(argv_io, cmdinfos);
   }