Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Nov 2005 15:36:16 +0000
From:      Brian Candler <B.Candler@pobox.com>
To:        freebsd-current@freebsd.org
Subject:   Re: Order of files with 'cp'
Message-ID:  <20051118153616.GA12210@uk.tiscali.com>
In-Reply-To: <20051118145051.GA3713@Pandora.MHoerich.de>
References:  <20051116161540.GB4383@uk.tiscali.com> <20051118091333.GA1058@galgenberg.net> <20051118145051.GA3713@Pandora.MHoerich.de>

next in thread | previous in thread | raw e-mail | index | archive | help
> This just adds a -o flag to cp, which preserves order.

Hmm, that's another solution that I hadn't thought of.

Advantages: simple to implement. (Even simpler if you use the ?: operator).

Disadvantages: it's still strange that the default behaviour is to copy the
files in an arbitary shuffled order. The manpage will need updating to
document the -o flag, and hence will have to explain the strangeness.
Commands arguably have too many flags already.

Regards,

Brian.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051118153616.GA12210>