www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/07/12:39:23

Date: Mon, 7 Jul 1997 12:37:12 -0400 (EDT)
From: "Art S. Kagel" <kagel AT ns1 DOT bloomberg DOT com>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Cc: Fred Smith <fredex AT fcshome DOT stoneham DOT ma DOT us>, djgpp AT delorie DOT com
Subject: Re: stubify/stubedit
In-Reply-To: <Pine.SUN.3.91.970706173234.8624H-100000@is>
Message-Id: <Pine.D-G.3.91.970707123448.1203B-100000@dg1>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019