Bash  5.0-beta2
Bash - Bourne Again shell
strmatch.h File Reference
#include <config.h>
#include "stdc.h"

Go to the source code of this file.

Macros

#define FNM_PATHNAME   (1 << 0) /* No wildcard can ever match `/'. */
 
#define FNM_NOESCAPE   (1 << 1) /* Backslashes don't quote special chars. */
 
#define FNM_PERIOD   (1 << 2) /* Leading `.' is matched only explicitly. */
 
#define FNM_LEADING_DIR   (1 << 3) /* Ignore `/...' after a match. */
 
#define FNM_CASEFOLD   (1 << 4) /* Compare without regard to case. */
 
#define FNM_EXTMATCH   (1 << 5) /* Use ksh-like extended matching. */
 
#define FNM_FIRSTCHAR   (1 << 6) /* Match only the first character */
 
#define FNM_NOMATCH   1
 

Functions

int strmatch __P ((char *, char *, int))
 

Macro Definition Documentation

◆ FNM_PATHNAME

#define FNM_PATHNAME   (1 << 0) /* No wildcard can ever match `/'. */

Definition at line 35 of file strmatch.h.

Referenced by glob_name_is_acceptable(), and glob_vector().

◆ FNM_NOESCAPE

#define FNM_NOESCAPE   (1 << 1) /* Backslashes don't quote special chars. */

Definition at line 36 of file strmatch.h.

◆ FNM_PERIOD

#define FNM_PERIOD   (1 << 2) /* Leading `.' is matched only explicitly. */

Definition at line 37 of file strmatch.h.

Referenced by glob_vector().

◆ FNM_LEADING_DIR

#define FNM_LEADING_DIR   (1 << 3) /* Ignore `/...' after a match. */

Definition at line 45 of file strmatch.h.

◆ FNM_CASEFOLD

#define FNM_CASEFOLD   (1 << 4) /* Compare without regard to case. */

Definition at line 46 of file strmatch.h.

Referenced by exec_name_should_ignore(), and glob_vector().

◆ FNM_EXTMATCH

#define FNM_EXTMATCH   (1 << 5) /* Use ksh-like extended matching. */

Definition at line 47 of file strmatch.h.

Referenced by find_index_in_alist(), find_string_in_alist(), glob_vector(), and sh_modcase().

◆ FNM_FIRSTCHAR

#define FNM_FIRSTCHAR   (1 << 6) /* Match only the first character */

Definition at line 49 of file strmatch.h.

◆ FNM_NOMATCH

Function Documentation

◆ __P()

int strmatch __P ( (char *, char *, int)  )