![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Identify records having junk characters in unix | sureshg_sampat | Shell Programming and Scripting | 6 | 11-14-2007 10:44 AM |
| Identify a remote machine as windows or unix | u449064 | UNIX for Advanced & Expert Users | 5 | 08-05-2006 09:03 AM |
| code mount in c language | jeter | High Level Programming | 7 | 03-23-2006 05:39 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
| Forum Sponsor | ||
|
|
|
|||
|
What do you mean exactly?
Are you curious as to why some programs, like text editors manage to identify which programming language a piece of code represents? File extension, or even existence of certain keywords particular to a language can help identify the programming language used with a bit of parsing. After all, these are all heuristic methods that practically works quite well with sometimes quite accurate guesses but they are not necessarily correct. I don't think Unix by itself recognizes the language used. For example, if you want to compile a C program you need to explicitly invoke 'cc'; while for a Perl program you need to invoke 'perl' (or as the top shebang line). There is no mystery in there. |
|
||||
|
Re: how does unix identify C and other language code!
Quote:
csh tcsh sh ksh bash are a few shells that can do no such thing. |
||||
| Google UNIX.COM |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|