Shell file completion

Bill Moran wmoran at potentialtech.com
Sun Feb 20 17:20:03 GMT 2005


[Please wrap your lines around 72 chars or so]

Alejandro Pulver <alejandro at varnet.biz> wrote:
> Hello,
> 
> I was learning regular expressions, and I noticed that the shell has
> something similar (but it is different from regular expressions).
> 
> When I type 'echo *', it replaces '*' for all the files/dirs not starting
> with a '.' (dot).
> 
> I understand the '*' in regular expressions must be preceded by other
> thing to match it.
> 
> So it is behaving like the DOS wildcards.

That's funny.  More like "DOS wildcards seem to mimic this".

> Where is it documented?

'man sh' - the section on "Shell Patterns".

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050220/9ab47101/attachment.bin


More information about the freebsd-questions mailing list