ELGLOB(1) BSD General Commands Manual ELGLOB(1)
NAME
elglob — perform globbing on a pattern, then execute another program
SYNOPSIS
elglob [−v] [−w] [−s] [−m] [−e] [−0] variable pattern prog...
DESCRIPTION
elglob performs globbing[1] on pattern.
It then performs variable substitution (
cf. execline-substitute(7) ) on prog..., using variable as key and the result of the globbing as value. The value is always split: it contains as many words as they are matches for the globbing pattern.
elglob then exec(3)s into the modified prog....
OPTIONS
−v
Verbose. If there is a problem while globbing, print a warning message on stderr.
−w
Strict. If there is a problem while globbing, die immediately. This is harsh - you probably don’t need that option.
−s
Sort the matches. By default, the results are left unsorted.
−m
Mark. Append a slash to each word that corresponds to a directory.
−e
No escape. Treat backslashes in pattern literally; do not allow quoting of metacharacters in pattern via backslashes. Warning: the execlineb(1) launcher uses the backslash as their own escape character - if you want a backslash to be passed to elglob, do not forget to double it.
−0
Null globbing. By default, if pattern matches nothing, it will be substituted as is (verbatim in one word). With this option, if pattern matches nothing, it will be properly substituted as zero word.
SEE ALSO
define(1), elgetpositionals(1), execlineb(1), importas(1), multidefine(1), multisubstitute(1), execline-substitute(7)
[1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/glob.html
This man page is ported from the authoritative documentation at: https://skarnet.org/software/execline/elglob.html
AUTHORS
Laurent Bercot
Alexis <
[email protected] > (man page port)
BSD February 14, 2021 BSD