Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 2010 21:08:10 +0100
From:      Mike Clarke <jmc-freebsd2@milibyte.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: how do i scp .dotfiles??
Message-ID:  <201008292108.10551.jmc-freebsd2@milibyte.co.uk>
In-Reply-To: <20100829213459.ba11c3b8.freebsd@edvax.de>
References:  <20100827170737.GA96063@thought.org> <864oedkzck.fsf@red.stonehenge.com> <20100829213459.ba11c3b8.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 29 August 2010, Polytropon wrote:

> The "problem" (i. e. a convention) is that .* is not part of *,
> which includes everything else, even "nothing", and the
> form *.* (that looks like the DOS equivalent of "all files")
> does seem to omit .*; the spaced form * .* would work as it
> contains * (which does not contain .*) and .* (not in *). :-)

The problem with using .* as a wildcard for hidden files is that it will 
include .. which is almost certainly not what you want. For example 
rm -r .* can be disastrous. A safer wildcard for hidden dotfiles and 
everything else could be .[^.]* *

-- 
Mike Clarke



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008292108.10551.jmc-freebsd2>