[fpc-pascal] Exe file names (was:differences between .pp and .pas files)
印場 乃亜
shiruba at galapagossoftware.com
Sun Mar 10 06:49:02 CET 2013
Joao,
I think you had better be careful what you say. Someone will rename their entire /usr/bin directory and wonder why the system stops working!
You can rename executables you create, but don't change the names of standard ones!
Anyway you can tell what programs unix will *try* to run based on the execution flag (ls -la).
As an aside, on Max OS X, you will see:
1. Command line programs with naked names like "runme"
2. GUI programs with names like "runme.app".
(X11 programs have no .app extension usually).
Atari's GEM system also used .app, but it was just an extension, like in DOS.
Mac OS X has "Bundles", and an Application is a special type of bundle. A bundle is a kind of hybrid between a directory and a single file. In current OS X versions, it is basically a directory that is treated as a single file by the GUI, and has some special bits set on the fielsystem - but you can enter it using the command-line, or using some comment like "browse bundle contents" in the GUI if you know what you are doing.
Inside the bundle, then, you will find the naked executable file somewhere with no extension.
So if you are making command-line apps, then it's just like any other BSD. If you are making native GUI apps, then there is some special sauce. Luckily Lazarus handles this for you...
Thank you,
Noah Silva
On 2013/02/26, at 8:51, Joao Morais <jcmoraisjr at gmail.com> wrote:
> On Mon, Feb 25, 2013 at 8:03 PM, Graeme Geldenhuys
> <graeme at geldenhuys.co.uk> wrote:
>>
>> I quite like this idea. I have always hated *nix systems that don't use
>> extensions for executables. Rather hard to quickly search for
>> executables in a directory hierarchy, where with a file extension it is
>> much easier.
>
> find -type f -executable
>
> Btw .bat is also executable. And nothing prevents you from naming your
> nix executables with the .exe extension.
>
> Joao Morais
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list