Unix Technical Forum

naming things (and reporting an error)

This is a discussion on naming things (and reporting an error) within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi there, I wonder how many people unknowingly create errors by their choice of a name for something? As ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 01:02 PM
Grant
 
Posts: n/a
Default naming things (and reporting an error)

Hi there,

I wonder how many people unknowingly create errors by their choice
of a name for something? As well, I quote an example of _good_
error reporting. Very simple, copy/paste an example into post.

"asbesto" wrote to lkml:
>using the character > ' < in the
>
>() Local version - append to kernel release
>
>will cause "make" to fail. Here's an example:
>
>Using:
>(Gesu'Cristo) Local version - append to kernel release
>
>will cause:
>gemini linux # make
>/bin/sh: -c: line 0: unexpected EOF while looking for matching"'
>/bin/sh: -c: line 1: syntax error: unexpected end of file
>make: *** [include/linux/version.h] Error 2



I look at the quoted error message above, see a shell error, and
am reminded of:

"Doctor, it hurts when I do that?" ... "Don't do that!"


So what is safe for a name? At a minimum one could apply programming
variable name rules: start with a letter, follow with alpha + number +
underscore characters ([a-zA-Z][a-zA-Z0-9_]*). Embedded dashes are
safe for file names. Other characters may be safe, but then one must
track exceptions for various contexts. Stuff may happen

Information overload precludes thinking about naming of things
too much, no?

Grant.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:34 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com