Re: [patch 1/2] Make gdbtui a shell script

Tom Tromey
2011-12-21T17:25:36Z

>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> Fedora has been using gdb<->gdbtui hardlink but according to Tom
Jan> argv[0] should not be used. GNU Coding Standards IMO do not say
Jan> exactly this thing.

From '(standards) User Interfaces':

Please don't make the behavior of a utility depend on the name used to
invoke it. It is useful sometimes to make a link to a utility with a
different name, and that should not change what it does.

Instead, use a run time option or a compilation switch or both to
select among the alternate behaviors.

Tom