Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


  • Why doesn't this work?


# cat ~/.Xdefaults

XTerm*background: black
XTerm*foreground: white
XTerm*highlightColor: red
XTerm*highlightSelection: true

# xrdb -load ~/.Xdefaults

cpp: too many input files
share|improve this question
up vote 2 down vote accepted

Cpp reports this error if it receives more than two arguments on the command line.

On what OS are you running? Is there a non-standard version of cpp in your $PATH? You can try replacing cpp with a wrapper script to find out what it's really doing or use "strace" to see how it's being called.

Hold on, I think I've got it: the path to your directory contains whitespace. Watch this:

  $ mkdir '/tmp/this path contains spaces'
  $ HOME='/tmp/this path contains spaces' sh
  $ cd ~
  $ pwd
  /tmp/this path contains spaces
  $ touch testfile
  $ xrdb ~/testfile
  cpp: too many input files

Let me know if this is an accurate assessment.

share|improve this answer
@larsks: Thanks! I had white space in $PATH - Win NT 5.1, Cygwin – Aaron Dec 4 '09 at 8:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.