Re: [PATCH] Add a "-h" flag to mv

2012-08-29 Thread John Baldwin
On Wednesday, August 29, 2012 3:32:13 pm Jilles Tjoelker wrote: > On Wed, Aug 29, 2012 at 08:09:20AM -0400, John Baldwin wrote: > > On Wednesday, August 29, 2012 6:02:47 am Jilles Tjoelker wrote: > > > GNU coreutils mv (and also cp/install/ln) appears to use > > > -T/--no-target-directory for a sim

Re: [PATCH] Add a "-h" flag to mv

2012-08-29 Thread Jilles Tjoelker
On Wed, Aug 29, 2012 at 08:09:20AM -0400, John Baldwin wrote: > On Wednesday, August 29, 2012 6:02:47 am Jilles Tjoelker wrote: > > GNU coreutils mv (and also cp/install/ln) appears to use > > -T/--no-target-directory for a similar purpose: -T prevents the target > > being treated as a directory (w

Re: [PATCH] Add a "-h" flag to mv

2012-08-29 Thread John Baldwin
On Wednesday, August 29, 2012 6:02:47 am Jilles Tjoelker wrote: > On Tue, Aug 28, 2012 at 10:58:09AM -0400, John Baldwin wrote: > > I have a use case at work where I need to be able to update a symlink > > that points to a directory atomically (so that it points to a new > > directory). To give a

Re: [PATCH] Add a "-h" flag to mv

2012-08-29 Thread Jilles Tjoelker
On Tue, Aug 28, 2012 at 10:58:09AM -0400, John Baldwin wrote: > I have a use case at work where I need to be able to update a symlink > that points to a directory atomically (so that it points to a new > directory). To give a conrete example, suppose I have two directories > 'foo' and 'bar', and a

Re: [PATCH] Add a "-h" flag to mv

2012-08-29 Thread Gary Jennejohn
On Tue, 28 Aug 2012 10:58:09 -0400 John Baldwin wrote: > I have a use case at work where I need to be able to update a symlink that > points to a directory atomically (so that it points to a new directory). To > give a conrete example, suppose I have two directories 'foo' and 'bar', and a > s

[PATCH] Add a "-h" flag to mv

2012-08-28 Thread John Baldwin
I have a use case at work where I need to be able to update a symlink that points to a directory atomically (so that it points to a new directory). To give a conrete example, suppose I have two directories 'foo' and 'bar', and a symlink 'a' that I wish to atomically flip from 'foo' to 'bar'. U