[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

cp: backup version control



Hi,

>From 'man cp':

,-----
| The backup suffix is `~', unless set with --suffix or SIM-
| PLE_BACKUP_SUFFIX.  The version control method may be
| selected via the --backup option or through the
| VERSION_CONTROL environment variable.
`-----

However, I found that the VERSION_CONTROL environment variable doesn't 
work:

$ cp -v --suffix=b --backup=numbered a b
`a' -> `b' (backup: `b.~3~')

$ export VERSION_CONTROL=numbered 
$ cp -v a b
`a' -> `b'

Moreover, the SIMPLE_BACKUP_SUFFIX or --suffix does not work at all.

Any comment?

Thanks

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


Reply to: