home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.lang.c
- Subject: Re: alias acess
- Date: 17 Dec 1992 18:11:07 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 14
- Message-ID: <1gqfrrINNgtb@early-bird.think.com>
- References: <980@rc1.vub.ac.be>
- NNTP-Posting-Host: telecaster.think.com
-
- In article <980@rc1.vub.ac.be> jcu@dec5.ulb.ac.be (Jean-Christophe Ury) writes:
- >I 've some aliases defined in my shell.I would access these aliases via
- >a C program. Is it possible.
-
- system("csh -c 'command line'");
-
- where "command line" is a shell command line that uses your aliases, should
- work. When the C shell starts up it will source your .cshrc, which will
- define the aliases.
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-