getfsent(3) and spaces in fstab

Terry Lambert tlambert2 at mindspring.com
Fri Aug 1 01:08:54 PDT 2003


Chris BeHanna wrote:
>     What about
> 
>     test%201    /mnt/test%201   ufs     ro      0       0
> 
> ?
> Ugly, yes, but that's how a lot of tools escape spaces.

"%" is almost infinitely more likely in a path than "\"; better
to use the "\" than the "%" mechanism.  Also, the parser can
b LALR single token lookahead, wheras "%" rewuires pushing state
(2 token lookahead).

-- Terry


More information about the freebsd-hackers mailing list