[Talk] Question about scripts

talk@flux.org talk@flux.org
Thu, 7 Sep 2006 15:31:22 -0400 (EDT)


> Say you get a request to print out the first 10 digits of Pi in the 
> fewest possible number of lines (source).  You turn in the following:
>
> #!/bin/sh
> echo "3.141592653"
>
> The instructor marks it wrong, and argues that it's contrary to the 
> spirit of the assignment.  What do you folks think?


If I were your instructor I would give you an A, admit that I screwed up, 
and make sure I was more articulate in the future.

I also would make note of whether you graciously accepted by admission of 
screwing up and offered to redo the assignment using code with a 
formula in it.

liz