![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 !! |
More UNIX and Linux Forum Topics 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 02:44 PM |
| Identify a remote machine as windows or unix | u449064 | UNIX for Advanced & Expert Users | 5 | 08-05-2006 12:03 PM |
| code mount in c language | jeter | High Level Programming | 7 | 03-23-2006 09:39 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|