Mail Archives: djgpp/1997/07/07/12:39:23
On Sun, 6 Jul 1997, Eli Zaretskii wrote:
>
> On Fri, 4 Jul 1997, Fred Smith wrote:
>
> > I would like to create a "link" using stubify/stubedit which passes
> > certain parameters to the linked-to program in addition to the argv[0]
> > which it now supports. There does not at this time appear to be any way
> > to do that.
> >
> > Would/could the gurus who understand those programs give me a hint
> > as to whether it is even feasible, were I to undertake to do it myself?
>
> You are talking about alias, not a symlink. A symlink is just a
>
> I don't think you can easily change this, since it requres numerous
No but what you can do is to create the symbolic link and in your program
change the default options that you assume according the the value of
argv[0]. This is how grep/fgrep/egrep work. I have written many
programs of this type.
Art S. Kagel, kagel AT bloomberg DOT com
- Raw text -