More knowledgeable people in debian-devel suggested

conditional_cp () {
 if [ ! -e "$2/$1" ]; then
   if [ -L "$1" ] && [ -e "$1" ]; then
     cat "$1" >"$2/$1"
   elif [ -e "$1" ]; then
     cp -a "$1" "$2/$1"
   fi
 fi
}


as a more  portable and less syntactically ambiguous method

Ronny


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to