Hi Steve :)

perhaps this can be useful, if we send it to the list, I'll send it to 
the list and send it bcc to you, because I don't think that this is OT.

Steve [snip] wrote:
>> 'cp -a *' will copy the '/mainfolder', '/a_folder_in_the_main_folder'
>> and '.a_hidden_file_in_the_folder_that_is_in_the_main_folder', but it
>> won't copy '.a_hidden_file_in_the_main_folder.txt'
>>     
>
> Try
>
>     cp -a .
>
> Does this have the result you expect?
>
> The difference has nothing to do with the behaviour of cp. Think, what
> does the * expand to in your shell? Try
>
>     echo *
>
> and compare
>
> ls -a *
> ls -a .
>
> If you expect the shell to do one thing, and it does another, it is
> possible you have misunderstood how it works.
>   

For me it's plausible to use

ls -a

without * or . and yes, I misunderstood how the wildcard * works, even 
if it worked the way I was using it with Linux since years.

I googled for 'wildcards linux' maybe I should use

{*,.[!.]*}

instead of

*

in the future ;), even if * will work in nearly every case.

It's not plausible for me, anyhow I'll read the German link about 
{*,.[!.]*} and wildcards in the future.

Cheers,
Ralf

A German link about globbing: 
http://linuxseiten.kg-it.de/index.php?index=bash_globbing#bash_globbing
_______________________________________________
64studio-users mailing list
[email protected]
http://lists.64studio.com/mailman/listinfo/64studio-users

Reply via email to