=================================================================== RCS file: /home/cvs/OpenXM/rc/repl.c,v retrieving revision 1.17 retrieving revision 1.19 diff -u -p -r1.17 -r1.19 --- OpenXM/rc/repl.c 2004/06/20 04:55:32 1.17 +++ OpenXM/rc/repl.c 2020/10/07 23:57:57 1.19 @@ -1,4 +1,4 @@ -/* $OpenXM: OpenXM/rc/repl.c,v 1.16 2004/06/14 11:10:40 takayama Exp $ */ +/* $OpenXM: OpenXM/rc/repl.c,v 1.18 2019/03/29 02:49:48 takayama Exp $ */ #include #include @@ -47,7 +47,7 @@ main(int argc,char *argv[]) { strcat(cwd,"/OpenXM"); if (cwd[0] != '/') { fprintf(stderr,"Warning: prefix must start with /\n"); - fprintf(stderr,"Your prefix is %d\n",cwd); + fprintf(stderr,"Your prefix is %s\n",cwd); } }else{ fprintf(stderr,"Warning: Unknown option.\n"); @@ -59,6 +59,12 @@ main(int argc,char *argv[]) { printf("OpenXM_HOME=%s\n",cwd); }else if (strcmp(s,"setenv OpenXM_HOME $HOME/OpenXM\n") == 0) { printf("setenv OpenXM_HOME %s\n",cwd); + }else if (strcmp(s,"OpenXM_HOME=$(HOME)/OpenXM\n") == 0) { + printf("OpenXM_HOME=%s\n",cwd); + }else if (strcmp(s,"setenv OpenXM_HOME \"$(HOME)\"/OpenXM\n") == 0) { + printf("setenv OpenXM_HOME %s\n",cwd); + }else if (strcmp(s,"OpenXM_HOME=\"${HOME}\"/OpenXM\n") == 0) { + printf("OpenXM_HOME=%s\n",cwd); }else{ printf("%s",s); }