Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!lll-lcc!ptsfa!ihnp4!houxm!mtuxo!mtune!mtunb!dmt From: dmt@mtunb.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: more.com question Message-ID: <854@mtunb.UUCP> Date: Fri, 27-Feb-87 08:29:11 EST Article-I.D.: mtunb.854 Posted: Fri Feb 27 08:29:11 1987 Date-Received: Sun, 1-Mar-87 10:34:36 EST References: <1172@sphinx.UChicago.UUCP> Reply-To: dmt@mtunb.UUCP (Dave Tutelman) Organization: AT&T Information Systems - Lincroft, NJ Lines: 31 In article <1172@sphinx.UChicago.UUCP> cjdb@sphinx.UChicago.UUCP (Charles Blair) writes: > >I just downloaded the recently posted more.com. When I type filename | >more.com, I get more without an indication of how much of the rest of >the file there is to be typed. When MORE knows the file it's working with, it can tell its size and calculate the percent left. However, if it's just reading standard input (e.g.- from a pipe as you describe), if has no idea where the file ends so it can't estimate percent complete. At least it's smart enough not to try. >When I type | more filename, I get >"Invalid number of parameters" from PC-DOS 3.2, then the file is >typed, and more _does_ indicate how much of the file is left. What happens here is interesting: - First, DOS runs TYPE with no arguments. The result is the error message, since TYPE _must_ have a filename argument. - Next, DOS runs MORE with the filename argument and _also_ STDIN. (Of course, STDIN is null, because TYPE failed.) The messages you get here are from MORE running _with_ a filename argument, so it can tell the size of the file. Hope this helps. +---------------------------------------------------------------+ | Dave Tutelman | | Physical - AT&T - Lincroft, NJ | | Logical - ...ihnp4!mtuxo!mtunb!dmt | | Audible - (201) 576 2442 | +---------------------------------------------------------------+