[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Compatibility Issues With Windows Files



On Tue, Oct 4, 2011 at 4:48 PM, Ralf Mardorf <ralf.mardorf@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. 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.

Regards,
-- 
Jordan Metzmeier


Reply to: