Date: Wed, 2 May 2001 00:33:43 -0700 (PDT) From: Christian Chen <oistrakh@earthlink.net> To: "David W.Chapman Jr." <dwcjr@inethouston.net> Cc: <stable@FreeBSD.ORG>, <jeffm@eonline.com> Subject: [Slightly OT] Re: tail Message-ID: <20010502002751.P2686-100000@pirastro.oistrakh.org> In-Reply-To: <01042923320407.06042@dwcjr.inethouston.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <chris@JEAH.net> > > :: JEAH Communications, LLC. <www.JEAH.net> > > :: Toll-Free <1-866-AWW-JEAH> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010502002751.P2686-100000>