[Toybox] Toybox Digest, Vol 7, Issue 5

Georgi Chorbadzhiyski gf at unixsol.org
Thu May 10 15:25:21 PDT 2012


On 09.5.2012 г. 07:37, Ashwini Sharma wrote:
> I am working on mv command... so was interested in dirtree_read.
>
> it doesn't give me the expected result, like a hit on every entry in source
> dir.
> The source path i get is complete as from start, and not the intended
> directory for move.
>
> like "mv /temp3/temp1 ./" I get source as temp3/temp1 instead of temp1...
> which should be the intention in case of dirtree_read().

https://github.com/gfto/toybox/blob/02a58feb4529d564e10b9b790bfc604aaf1820dd/toys/mv.c

This was working (sort of) in combination the rm from the same branch
(dev at http://github.com/gfto/toybox.git) you can use it as base if
it helps you.

-- 
Georgi Chorbadzhiyski
http://georgi.unixsol.org/

 1336688721.0


More information about the Toybox mailing list