Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to understand the following shell script:

/usr/local/bin/uncrustify -q -c ~/objc.cfg -l oc

But I don't know what some of the parts say. This part

/usr/local/bin/uncrustify

says go to the bin directory and run the program uncrustify with two parameters -q and -c.

This part

~/objc.cfg -l oc

Says look in the home directory for the file objc.cfg and pass it in as a parameter too. Am I right?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

That's not a script but simply a command. -q, -c, ~/objc.cfg, -l and oc are all parameters of /usr/local/bin/uncrustify. For its semantic take a look at man uncrustify. Also /usr/local/bin/ is not needed as it's likely to be in your $PATH environment variable, so:

uncrustify -q -c ~/objc.cfg -l oc

behaves the same.


From man uncrustify:

  • -q : Quiet mode - no output on stderr;

  • -c ~/objc.cfg : Use the config file ~/objc.cfg;

  • -l oc : Language override: OC.

share|improve this answer

Your Answer

 
discard

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.