Menu

#8 non-portable option for cp

To_fix
open-accepted
5
2008-01-13
2008-01-13
Klaus Heinz
No

Hi,

the program fvwm-themes-config uses

system("cp -af * '../../$dest'");

but option "-a" for cp is a GNU extension.
Please use "-dpR" instead which should have the same
effect, according to the man page for cp on Debian 3.

ciao
Klaus Heinz

Discussion

  • Mikhael Goikhman

    Logged In: YES
    user_id=7740
    Originator: NO

    This is not that simple, since "cp -a" also applies --no-dereference
    and although newer GNU cp versions have this option aliased to "-P",
    older versions gave a different meaning to "-P".

    In any case, it is better to avoid using "cp -a" whenever possible.

     
  • Mikhael Goikhman

    • milestone: --> To_fix
    • status: open --> open-accepted
     

Log in to post a comment.

MongoDB Logo MongoDB