On Tue, 2011-10-04 at 19:45 -0500, Jordan Metzmeier wrote:
> On Tue, Oct 4, 2011 at 4:48 PM, Ralf Mardorf <ralf.mard...@alice-dsl.net> 
> wrote:
> > Beside the space issue, you also might take care about globbing.
> > If you e.g. "cp *" you won't copy hidden files of the directory, but all
> > inside folders of the directory. If you e.g. "rm *", you'll delete all
> > files, including hidden files.
> 
> The command "cp *" will not recurse into directories without -r or -a
> to enable recursion. The "*" is expanded by the shell and is passed as
> arguments to the command. This means that "*" will expand to the same
> set of files and directories, regardless of the command in front of
> it.

*lol* sorry, I should have add the -r switch.

> In bash, you can enable globbing of hidden files with "shopt -s
> dotglob".
>         dotglob If set, bash includes filenames beginning with a `.'  in
>         the results of pathname expansion.

I didn't know that :).

Anyway, I just thought it might be an important hint, for somebody who
has got issues with spaces.



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1317799964.2577.16.camel@debian

Reply via email to