The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

pmvmac -- MvMac(1), or mv(1), implemented as perl script

SYNOPSIS

 pmvmac [-f|-i]  source_file target_file
 pmvmac [-f|-i]  source_file ... target_directory

TIGER

As of Mac OS X v10.4 (Tiger), the ordinary mv(1) does support resource fork.

DESCRIPTION

pmvmac, as its name implies, moves files with finder info and resource fork.

In the first synopsis form, pmvmac renames the source_file to the target_file. In the second synopsis form, each named source_file is moved to the destination target_directory. The names of the files themselves are not changed. If mv detects an attempt to move a file to itself, the copy will fail.

The following options are available:

-f

Foreach existing destination pathname, attempt to overwrite it. If permissions do not allow move to succeed, remove it without prompting for confirmation.

-i

Causes pmvmac to write a prompt to the standard error output before copying a file that would overwrite an existing file. If the response from the standard input begins with the character "y" or "Y", the file move is attempted.

For safety, this option cancels -f option. This is the opposite of BSD mv implementation.

-v

Verbose mode. Prints each items copied to standard output.

Cross-volume move

When mvmac tries to move items accross volumes, pmvmac uses pcpmac and File::Path::rmtree() to accomplish the move. The effect is equivalent to:

  rm -f destination_path && \
  pcpmac -r source_file destination && \
  rm -rf source_file

AUTHOR

Dan Kogai <dankogai@dan.co.jp>

SEE ALSO

mv(1) "Developer/Tools/MvMac"

COPYRIGHT

Copyright 2002-2005 Dan Kogai <dankogai@dan.co.jp>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 105:

'=item' outside of any '=over'

Around line 125:

You forgot a '=back' before '=head2'