PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] (Student) Re: Wildcard Follow Up
Date: Sunday, 13 Sep 2020, 12:19:13


    > Message Posted By: Unknown
    >
    > I did some testing, and it looks like if there are no matches for a
    > wildcard string, C does not modify the wildcard string. So in ./fiend
    > -name X*, the argument to -name is literally X*, and since there are no
    > files called X*, there's no output.

No, as I explained in an earkier post, bash expands all
unescaped wildcards and issues error messages if none
expand to at least one file.  You can verify this by
running your fiend in gdb and looking at the values
of the arguments.

--Stan-
PREV INDEX NEXT