[Top][All Lists]

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

Re: DWIM feature request for cp

From: John Cowan
Subject: Re: DWIM feature request for cp
Date: Wed, 15 Aug 2007 17:28:01 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

Alfred M. Szmidt scripsit:

>    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)
> Won't work, globs is expanded by the shell not by cp.

Not so fast.

It would be perfectly possible to have a switch --ignore-dots that
made cp ignore all arguments whose basenames were "." or "..".
I'm not sure if this is a Good Thing overall (you can achieve the
same results with careful use of find and grep), but it should at
least be thought about.

John Cowan <address@hidden>             http://www.ccil.org/~cowan
Today an interactive brochure website, tomorrow a global content
management system that leverages collective synergy to drive "outside of
the box" thinking and formulate key objectives into a win-win game plan
with a quality-driven approach that focuses on empowering key players
to drive-up their core competencies and increase expectations with an
all-around initiative to drive up the bottom-line. --Alex Papadimoulis

reply via email to

[Prev in Thread] Current Thread [Next in Thread]