On Sun, Mar 22, 2015 at 8:48 PM, Joshua Root <[email protected]> wrote: >> Hello list, >> >> The man page of port-search says --glob is the default, but the result >> was different when I added this option manually, for example: >> $ port search --name guile >> found 6 ports >> >> $ port search --name --glob guile >> found 1 ports >> >> Did I misunderstand anything here? >> >> Thanks. >> >> -- >> Chunyang > > The man page is sort of right but also sort of wrong. If you run: > > port search term > > then it actually uses "*term*" as the glob. This is not the same as > > port search --glob term > > which uses "term" as the glob. > > If you enter a search term that looks like a glob, though, it is used > as-is. These are equivalent: > > port search *term > port search --glob *term >
I see, but these search options, i.e., --exact, --glob and --regex, still seems strange for me. I know they are from Tcl. A normal search (like current default behavior) and regexp search are enough for me, just like Emacs. > - Josh _______________________________________________ macports-users mailing list [email protected] https://lists.macosforge.org/mailman/listinfo/macports-users
