DWIM feature request for cp

2007-08-15 Thread Roberto Rodríguez
Hello, I want to ask the developers what do they think about implementing a
way to do cp -r .* target (copy files and directories starting with dot)
without copying the parent directory .. (I think that's what the user
usually intends to do)

Thank you all and keep the good work,
Roberto

-- 
Roberto Rodríguez
http://www.robertorodriguez.com.ar
___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: DWIM feature request for cp

2007-08-15 Thread Roberto Rodríguez
2007/8/15, Bob Proulx [EMAIL PROTECTED]:

 If you are using GNU bash then it is pretty easy to avoid .. if you
 want.

   echo cp -r .!(.|) target/

OK, thank you all for your explanations. I wasn't aware of the
expansion in shell.
I'll read more about that in the Bash manpage.

-- 
Roberto Rodríguez
http://www.robertorodriguez.com.ar


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils