LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] [TOTD] find error corresponding to number

[ILUG] [TOTD] find error corresponding to number

P at draigBrady.com P at draigBrady.com
Sat May 8 12:57:12 IST 2004


kevin lyda wrote:
> On Fri, May 07, 2004 at 12:38:28PM +0100, Feargal Reilly wrote:
> 
>>Bloatware at 550 chars, but for those who are desperately short on
>>bytes, you could put the
> 
> 
> dear god.  550 bytes?  strerror.pl is down to 92 bytes:
> 
>     http://ie.suberic.net/~kevin/strerror.pl
> 
> hm.  we should have a competition each month to come up with the tiniest
> program in whatever language to acomplish some trivial task.

This one isn't over yet :-)

strerror is now 73 bytes

#!/bin/sh
echo "#include <errno.h>"|cpp -dD|egrep -w "#define E[^ ]+ *$1"

-- 
Pádraig Brady - http://www.pixelbeat.org
--- Following generated by rotagator ---

Environment variables

VAR=value command #for command only
VAR=value         #for this shell only
export VAR=value  #for this shell and child processes

Environment variables can never be passed to parent processes
It's useful to set environment variables like above in
startup files. To get details for bash do:
info bash "Bash Features" "Bash Startup Files"
--



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell