From owner-freebsd-stable Wed May 2 0:35:48 2001 Delivered-To: freebsd-stable@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id 77C5D37B422 for ; Wed, 2 May 2001 00:35:45 -0700 (PDT) (envelope-from oistrakh@earthlink.net) Received: from pirastro.oistrakh.org (user-2ivftbk.dialup.mindspring.com [165.247.245.116]) by albatross.prod.itd.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id AAA27213; Wed, 2 May 2001 00:35:33 -0700 (PDT) Received: from localhost (oistrakh@localhost) by pirastro.oistrakh.org (8.11.3/8.11.1) with ESMTP id f427XhD02708; Wed, 2 May 2001 00:33:43 -0700 (PDT) (envelope-from oistrakh@earthlink.net) X-Authentication-Warning: pirastro.oistrakh.org: oistrakh owned process doing -bs Date: Wed, 2 May 2001 00:33:43 -0700 (PDT) From: Christian Chen X-X-Sender: To: "David W.Chapman Jr." Cc: , Subject: [Slightly OT] Re: tail In-Reply-To: <01042923320407.06042@dwcjr.inethouston.net> Message-ID: <20010502002751.P2686-100000@pirastro.oistrakh.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If you find this aspect of cat and tail to be annoying, at least it's consistent. On Solaris 2.7/2.8, cat will 1. Complain if you try to cat a normal, relative path directory, such as 'cat mydir' 2. Complain if you try to cat any NFS-mounted directory 3. BUT, happily display any full path directory, such as '/', '/tmp' and '/tmp/somewhere/over/the/rainbow' This is all the more crazy because 'truss cat /' clearly displays a call to fstat() to check the type of the file, and fstat()/fstat64() correctly returns that '/', '/tmp', et al., are directories. Christian Chen On Sun, 29 Apr 2001, David W.Chapman Jr. wrote: > Has it ever been different, have you tried running cat / > > its just taking the last few lines of that. What are you expecting? > > > :: -----Original Message----- > > :: From: owner-freebsd-stable@FreeBSD.ORG > > :: [mailto:owner-freebsd-stable@FreeBSD.ORG]On Behalf Of Chris Byrnes > > :: Sent: Monday, 30 April 2001 16:25 > > :: To: stable@freebsd.org > > :: Subject: tail > > :: > > :: awww# tail / > > :: > > :: . > > :: .. > > :: dev > > :: usr > > :: varstand > > :: etc) > > :: compat$procu% > > :: binbootuC > > :: > > :: sys > > :: mnt( > > :: modulesrootusbinuC > > :: > > :: sys.cshrc.profile; COPYRIGHTkernelENERIC > > :: ,tmp > > :: modules.ollibexec > > :: home7 > > :: kernel.old5x > > :: sshd.corst2iI1UR28-2000.tgzbackups9-23-2000.tar.gsh.coreS > > :: > > :: syslogd.coreawww# > > :: > > :: > > :: wtf? > > :: > > :: Chris Byrnes > > :: JEAH Communications, LLC. > > :: Toll-Free <1-866-AWW-JEAH> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message