Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gen/glob.3,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libc/gen/glob.3,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.43 retrieving revision 1.43.6.1 diff -u -p -r1.43 -r1.43.6.1 --- src/lib/libc/gen/glob.3 2017/07/03 21:32:49 1.43 +++ src/lib/libc/gen/glob.3 2019/06/10 22:05:19 1.43.6.1 @@ -1,4 +1,4 @@ -.\" $NetBSD: glob.3,v 1.43 2017/07/03 21:32:49 wiz Exp $ +.\" $NetBSD: glob.3,v 1.43.6.1 2019/06/10 22:05:19 christos Exp $ .\" .\" Copyright (c) 1989, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -31,7 +31,7 @@ .\" .\" @(#)glob.3 8.3 (Berkeley) 4/16/94 .\" -.Dd December 27, 2012 +.Dd May 28, 2019 .Dt GLOB 3 .Os .Sh NAME @@ -200,7 +200,7 @@ The following values may also be include .Fa flags , however, they are non-standard extensions to .St -p1003.2 . -.Bl -tag -width GLOB_ALTDIRFUNC +.Bl -tag -width GLOB_TILDE_CHECK .It Dv GLOB_ALTDIRFUNC The following additional fields in the pglob structure have been initialized with alternate functions for glob to use to open, read, @@ -285,6 +285,16 @@ characters will also follow symbolic lin Expand patterns that start with .Ql ~ to user name home directories. +If the user with the given user name (or the user id of the current user +in the case of +.Dq ~/ ) +is not found, the original pattern is returned. +.It Dv GLOB_TILDE_CHECK +When used with +.Dv GLOB_TILDE +and the user name or the user id is not found, then +.Dv GLOB_NOMATCH +is returned instead of the original pattern. .El .Pp If, during the search, a directory is encountered that cannot be opened