Mail Archives: djgpp/2001/10/07/18:35:25
"D. Taupin (wanadoo-lps)" wrote:
>
> 1. Does the "ls" command give all files, including "hidden" files, as a
> standard?
It depends on what binary do you have. It shouldn't list the hidden files
by default, but some ports have a bug and do show them. "ls -a" should show
all the files, including hidden ones.
> 2. Does the expansion of * in commands include hidden files.
No.
> I ask that question in order to know whether a command like "zip" or
> "cp" wil/can/will not include hidden files.
> The reason of this question is to perform backups of some directories,
> INCLUDING hidden files (not done by pkzip for example).
You cannot count on hidden files to be included. I suggest to ``unhide''
them all (with "attrib -h d:\foo\bar /s"), copy the tree, and then make the
files that were hidden be hidden again manually.
Note that ports of Unix utilities such as `cp' cannot copy hidden files as
hidden anyway; they can only copy them as read-only.
- Raw text -