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

Re: script: test binary program vs shell script



Kevin Ponds wrote:
>>> or something along those lines. Grepping fo "ELF" can also be useful.
>>>
> 
> Grepping for ELF is a dangerous way to do it!  If you run the script on itself,
> it will think that it's a binary.

I think he meant grep'ing for 'ELF' in the output of the file command, not the
contents of the executable. Still not a cross-platform solution, though.

- Chris B


Reply to: