[Talk] Question about scripts
Kwan Lowe
talk@flux.org
Thu, 7 Sep 2006 12:29:15 -0400 (EDT)
Not really Linux related so I'm posting it here...
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?
--
* The Digital Hermit http://www.digitalhermit.com
* Unix and Linux Solutions kwan@digitalhermit.com