Date: Fri, 7 Jul 2000 22:51:21 -0700 From: "Crist J. Clark" <cristjc@earthlink.net> To: Danny <dannyh@idx.com.au> Cc: Grandpa Walrus <root@web-walrus.com>, freebsd-questions@FreeBSD.ORG Subject: Re: Quick question Message-ID: <20000707225120.F416@dialin-client.earthlink.net> In-Reply-To: <00070815445003.00341@dannyh.freebsd.org>; from dannyh@idx.com.au on Sat, Jul 08, 2000 at 03:43:59PM %2B1000 References: <Pine.BSF.3.96.1000707104945.2155A-100000@iceberg.web-walrus.com> <00070815445003.00341@dannyh.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 08, 2000 at 03:43:59PM +1000, Danny wrote:
> On Sat, 08 Jul 2000, Grandpa Walrus wrote:
> > Is there a limit on the size of filenames in stock 3.4-STABLE?
>
> In UNIX there is no limit for file names.
> Except it can't work with files such as spaces(like MS Windows 95)
Danny, I think you need to be a little more sure of your questions
before you tackle them. I'm also starting to wonder if you might live
under a bridge and eat goats.
1) There _is_ a filename maximum. But it is pretty big.
% grep PATH_MAX /usr/include/sys/syslimits.h
#define PATH_MAX 1024 /* max bytes in pathname */
Note that that is a limit for _entire path length._
2) Spaces are perfectly valid filename characters.
% touch "a file name with spaces"
% ls -l
total 0
-rw-r--r-- 1 cjc wheel 0 Jul 7 22:46 a file name with spaces
--
Crist J. Clark cjclark@alum.mit.edu
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000707225120.F416>
