Re: confusing behaviour of the * wildcard when handling "dot" files and dirs.



Rahul <nospam@xxxxxxxxxxxxxx> writes:

I tried going to /home/foouser/ and then doing a 'chown -R foouser *'

It seems to change the ownership recursively for all dirs and files under
/home/foouser/ except those starting with a . (dot)

Is this behaviour of the * wildcard by design or am I just missing
something here? I'm confused!

By design. * does NOT capture files which start with a . on purpose. Those
are supposed to be hidden, and thus echo * is not supposed to display them.
Since * is expanded by the shell not the program, it has to be consistant.
To get the . files, do
ls .??*
If you do just .* or .?* you will capture in the first instance both . and
... as well and if you do .?* you will capture .. This is pretty dangerous
if you are doing
rpm -r .*
for example.

Remember to always do
..??* as the wildcard for . files.


--
Rahul
.



Relevant Pages

  • Re: Translation of FORM functions into web-based function
    ... a further question along the line, I'm posting a Design ... >form) and the field through the control ... >query) through the form property RecordSource. ... >> we going to capture the FORM data? ...
    (microsoft.public.access.formscoding)
  • Re: Debugging designs that are running on FPGA
    ... on your design? ... I am using a Xilinx Virtex II XC2V6000 board, and I have a simple processor running on it. ... allowing me to capture data to a file. ... If that assumption is wrong, and you have a Xilinx FPGA, then how about Chipscope? ...
    (comp.arch.fpga)
  • Re: The Right Way to Design a Programme
    ... And no, I'm not suggesting that a system design is immutable, it ... absence of a good tool to capture what is in their mind. ... the UML-yankers out of the room for a few months, ... the cowoker in cubicle next to me suggested I download ...
    (comp.theory)
  • Re: FPGA for hobby use
    ... statements instead of a source code debugger. ... I think the bottom line is that graphics show structure better, ... capture for xc2000/xc3000 designs, and I hated VHDL for a long time. ... My old boss hung up a quote of mine about trying to design SW by ...
    (comp.arch.fpga)
  • Re: Why dont capture devices save their settings?
    ... capture device properties ... The capture driver models were designed asynchronously to (and, ... of user interface design fell below the line. ... When I was doing camera drivers for Intel, which was as early as 1998, they ...
    (microsoft.public.win32.programmer.directx.video)