frename is close to what I want, but it's not robust under unix: 1. using mv instead of libc rename means that permissions can be lost (if I ever use the thing from sudo). 2. file names with embedded quotes (or, worse, newlines -- but hopefully I never have to deal with that case) are not handled properly.
It's a 99% solution and it's good enough for now, but libc is special under unix (it's the documented interface to the kernel) and I think that when IFUNIX is true we should have and be using a globally defined libc adverb. -- Raul On Wed, Nov 9, 2011 at 5:00 PM, Eric Iverson <[email protected]> wrote: > frename might do what you want. > > On Wed, Nov 9, 2011 at 3:54 PM, Raul Miller <[email protected]> wrote: > >> Do we have an os-independent mechanism for renaming files (and >> directories and symbolic links and so on) in J? >> >> Thanks, >> >> -- >> Raul >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
