version 1.1, 2003/11/16 07:14:11 |
version 1.4, 2003/12/01 03:15:37 |
|
|
|
/* $OpenXM: OpenXM/src/util/test.c,v 1.3 2003/11/24 11:47:35 takayama Exp $ */ |
#include <stdio.h> |
#include <stdio.h> |
#include "ox_pathfinder.h" |
#include "ox_pathfinder.h" |
|
|
Line 7 sGC_malloc(int a) { |
|
Line 8 sGC_malloc(int a) { |
|
|
|
/* which command */ |
/* which command */ |
main(int argc,char *argv[]) { |
main(int argc,char *argv[]) { |
|
char *s; |
if (argc != 2) { |
if (argc != 2) { |
fprintf(stderr,"test cmdname"); |
fprintf(stderr,"test cmdname"); |
} |
} |
printf("%s\n",getCommandPath(argv[1])); |
printf("%s\n",getCommandPath(argv[1])); |
|
|
|
printf("%s (cyg) ==> %s (win)\n",argv[1],cygwinPathToWinPath(argv[1])); |
|
printf("%s (win) ==> %s (cyg)\n",argv[1],winPathToCygwinPath(argv[1])); |
|
|
|
printf("------------------ oxEvalEnvVar ---------------\n"); |
|
s = "/hoge/afo:${PATH}"; |
|
printf("%s ==> %s\n",s,oxEvalEnvVar(s)); |
|
s = "${PATH}:/hoge/afo"; |
|
printf("%s ==> %s\n",s,oxEvalEnvVar(s)); |
|
s = "/hoge/afo:${PATH"; |
|
printf("%s ==> %s\n",s,oxEvalEnvVar(s)); |
|
s = "/hoge/afo:$PATH}"; |
|
printf("%s ==> %s\n",s,oxEvalEnvVar(s)); |
|
s = "${HOME}:${PATH}:/hoge/afo"; |
|
printf("%s ==> %s\n",s,oxEvalEnvVar(s)); |
} |
} |
|
|
|
|