Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: PATCH: Re: completion problem with filename including # (and pathmax stuff)



>
> There are a couple of things we could do.
>
> One, we could pitch out the path length test and simply let domkdir()
> fail -- and perhaps test the value of errno to decide whether to break
> or continue as a result.
>
> Two, we could cause zpathmax() to lop off the tail of the path and call
> itself until it actually does find a maximum path length, then add the
> tail back on and repeat the strlen() test.  That might be a good thing
> to have for the general case anyway.
>
> Or we could do both of the above.
>

Or fall back to _POSIX_PATH_MAX (if system supports pathconf(), it rorbably
suports it as well):

PATH_MAX
Maximum number of bytes in a pathname, including the terminating null
character. Minimum Acceptable Value: _POSIX_PATH_MAX

-andrej



Messages sorted by: Reverse Date, Date, Thread, Author