On 10/19/06, Axel Liljencrantz <[EMAIL PROTECTED]> wrote:
> On 10/20/06, Philip Ganchev <[EMAIL PROTECTED]> wrote:
[...]
> > Is there a way to, say, copy all files and directories whose names
> > that start with "fish"?  Currently you would write ``cp -r fish*''.
>
> Unfortunatly no, not that I know of. 'cp' omits directories and
> flattens the file list. It would of course be possible to write a
> simple script to do such things, though.

Just to clarify:initially, you were talking about changing what **
matches, not *.  Now with the new rules, 'fish*' would not match a
directory called "fish.d"??  Currently it does.

If not, this seems as inconevenient as having to write "fish{,**/}*"
to match all files starting with "fish" and files in directories whose
name starts with "fish", no?  Wouldn't it be quite surprising to
someone who is used to using ``cp fish* dest''?  They would have to
learn to use "--parents".  You can hide that, using a script, but you
would have to do that for other commands that use directories too, or
there will be even more surprise.  In the end, it's probably best if
"fish*" matches directory names as well as file names.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to