# HG changeset patch # User Rob Landley # Date 1427648490 18000 # Node ID 28806689547bf11783b16ff8a10171f8ef77e318 # Parent 4c92484c2646ac499afc766513bc5d4aa20f0e76 Fix head bug pointed out by felix janda (recent -123 code broke first file argument of -n). diff -r 4c92484c2646 -r 28806689547b toys/posix/head.c --- a/toys/posix/head.c Sat Mar 28 20:21:03 2015 -0500 +++ b/toys/posix/head.c Sun Mar 29 12:01:30 2015 -0500 @@ -56,6 +56,6 @@ if (arg && *arg == '-' && arg[1]) { TT.lines = atolx(arg+1); toys.optc--; - } + } else arg = 0; loopfiles(toys.optargs+!!arg, do_head); }