[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: detect shell script language

Matej Cepl wrote:
Lorenzo Bettini wrote:
OK, so the line "exec ..." can be used as an heuristic for detecting the
actual scripting language, right?

I have no idea why they use this construct (something similar is used in
some perl scripts when they try to be cross-platform between Unix and
Windows, which apparently can use exec line), but for example browser for

I was told that this was used to get around problems in older versions of shells.

|  Lorenzo Bettini          ICQ# lbetto, 16080134     |
|  PhD in Computer Science                            |
|  Dip. Sistemi e Informatica, Univ. di Firenze       |
|  Florence - Italy        (GNU/Linux User # 158233)  |
|  Home Page        : http://www.lorenzobettini.it    |
|  http://music.dsi.unifi.it         XKlaim language  |
|  http://www.purplesucker.com Deep Purple Cover Band |
|  http://www.gnu.org/software/src-highlite           |
|  http://www.gnu.org/software/gengetopt              |
|  http://www.lorenzobettini.it/software/gengen       |
|  http://www.lorenzobettini.it/software/doublecpp    |

Reply to: