This was necessary as there are different implementations.
# Use settings for XTerm also for UXTerm. This prevents code duplication.
generate awk Xdefaults \
'{ print ; if ( /^XTerm/ ) { print "U" $0 } }'
- # Xdefaults uses ! as comment instead of #.
- sed -i 's/^#/!/' Xdefaults
+ # Xdefaults uses ! as comment instead of #. tmp file necessary because of
+ # different implementations of `sed -i`.
+ sed 's/^#/!/' Xdefaults > Xdefaults.tmp
+ mv Xdefaults.tmp Xdefaults
link xinitrc ~/.xinitrc
link xmodmaprc ~/.xmodmaprc