home *** CD-ROM | disk | FTP | other *** search
- Prereq: 1.3
- *** ../old/Makefile Fri Apr 22 11:07:41 1994
- --- ./Makefile Tue May 10 10:41:49 1994
- ***************
- *** 1,6 ****
- # Makefile for envv.
-
- ! VERSION=1.3
-
- SRCS=envv.c
- FILES=$(SRCS) Makefile README envv.1
- --- 1,6 ----
- # Makefile for envv.
-
- ! VERSION=1.4
-
- SRCS=envv.c
- FILES=$(SRCS) Makefile README envv.1
- *** ../old/README Tue May 10 10:32:02 1994
- --- ./README Tue May 10 10:55:45 1994
- ***************
- *** 30,35 ****
- --- 30,43 ----
-
- CHANGES TO ENVV:
-
- + * Version 1.4 (10 May 1994)
- +
- + + Bug fixes
- +
- + - If a set command was followed by add/move/del commands on stdin,
- + it didn't work -- the results of the set were not saved in envv's
- + environment.
- +
- * Version 1.3 (10 May 1994)
-
- + Bug fixes
- *** ../old/envv.1 Fri Apr 22 10:30:06 1994
- --- ./envv.1 Tue May 10 10:53:49 1994
- ***************
- *** 175,180 ****
- --- 175,194 ----
- components are added or moved in a path variable, they inherit
- whatever slashes are supplied in the \fIdir\fR argument. Experiment...
- .PP
- + The path-manipulation commands can add, move or delete only one
- + directory at a time. For example, use this:
- + .PP
- + .nf
- + add PATH /foo
- + add PATH /bar
- + .fi
- + .PP
- + and not this:
- + .PP
- + .nf
- + add PATH /foo:/bar
- + .fi
- + .PP
- .SH AUTHOR
- \fBEnvv\fR is Copyright 1994 by David F. Skoll. It may be distributed for
- free. The only fees which may be charged are normal media costs or
- *** ../old/envv.c Tue May 10 10:28:07 1994
- --- ./envv.c Tue May 10 10:54:14 1994
- ***************
- *** 31,37 ****
- /* If no commands given on command line, read from stdin */
- /* */
- /***************************************************************/
- ! #define VERSION "1.3"
-
- /* I need to use malloc. If its prototype is in malloc.h, #define
- NEED_MALLOC_H. */
- --- 31,37 ----
- /* If no commands given on command line, read from stdin */
- /* */
- /***************************************************************/
- ! #define VERSION "1.4"
-
- /* I need to use malloc. If its prototype is in malloc.h, #define
- NEED_MALLOC_H. */
- ***************
- *** 375,380 ****
- --- 375,382 ----
- int local;
- #endif
- {
- + char *envstr;
- +
- switch(shell) {
- case SH_LIKE:
- printf("%s=", var);
- ***************
- *** 397,402 ****
- --- 399,417 ----
- default:
- fprintf(stderr, "%s: internal error - bad shell value %d\n", Argv[0], shell);
- }
- +
- + /* If not reading from cmd line, set the value in the environment */
- + if (!UseCmdLine) {
- + envstr = malloc(strlen(var)+strlen(val)+2);
- + if (envstr) {
- + sprintf(envstr, "%s=%s", var, val);
- + putenv(envstr);
- + } else {
- + fprintf(stderr, "%s: out of memory!\n", Argv[0]);
- + exit(1);
- + }
- + }
- +
- return;
- }
-
-