#! Processing Problem

Chris Torek chris at mimsy.UUCP
Fri Apr 14 05:21:16 AEST 1989


In article <7915 at vdsvax.steinmetz.ge.com> lorensen at dwaskill.uucp
(Bill Lorensen) writes:
>There appears to be a hard limit on the length of the path name.

/sys/sys/kern_exec.c:

	/*
	 * Read in first few bytes of file for segment sizes, magic number:
	 *	407 = plain executable
	 *	410 = RO text
	 *	413 = demands paged RO text
	 * Also an ASCII line beginning with #! is
	 * the file name of a ``shell'' and arguments may be prepended
	 * to the argument list if given here.
	 *
	 * SHELL NAMES ARE LIMITED IN LENGTH.
	 *
	 * ONLY ONE ARGUMENT MAY BE PASSED TO THE SHELL FROM
	 * THE ASCII LINE.
	 */

/sys/h/param.h:

	#define	NCARGS	20480		/* # characters in exec arglist */
	#define	MAXINTERP	32	/* maximum interpret file name length */
	#define	NGROUPS	16		/* max number groups */
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.questions mailing list