#!/bin/tcsh -f
# mvnc: move no clobber
# Moves arg1 to arg2, but if arg2 exists, this command is applied
# recursively in order to move arg2 to arg2~.

set noglob
if (-e $2) mvnc $2 $2~  # The recursive call never bombs.
(mv -- $1 $2) || exit 1
