*** exec.c~ Thu Dec 22 10:37:58 1994
--- exec.c Thu Dec 22 22:10:46 1994
***************
*** 1008,1014 ****
sfx = mode == R_OK ? rsuffixes : xsuffixes;
for (i = 0; sfx[i]; i++) {
strcpy(tp, p = sfx[i]);
! if ((ret = search_access(path, R_OK)) == 0)
return 0;
*tp = '\0';
}
--- 1008,1014 ----
sfx = mode == R_OK ? rsuffixes : xsuffixes;
for (i = 0; sfx[i]; i++) {
strcpy(tp, p = sfx[i]);
! if ((search_access(path, R_OK)) == 0)
return 0;
*tp = '\0';
}
*** os2.c~ Mon Dec 19 12:16:34 1994
--- os2.c Thu Dec 22 21:03:52 1994
***************
*** 157,163 ****
P_WAIT, path, args, env);
if ( (apptype & FAPPTYP_EXETYPE) == FAPPTYP_WINDOWAPI ) {
! printf(""): /* kludge to prevent PM apps from core dumping */
return newsession(SSF_TYPE_PM, P_WAIT, path, args, env);
}
--- 157,163 ----
P_WAIT, path, args, env);
if ( (apptype & FAPPTYP_EXETYPE) == FAPPTYP_WINDOWAPI ) {
! printf(""); /* kludge to prevent PM apps from core dumping */
return newsession(SSF_TYPE_PM, P_WAIT, path, args, env);
}
*** sh.h~ Mon Dec 19 12:42:20 1994
--- sh.h Thu Dec 22 22:50:40 1994
***************
*** 252,258 ****
# define ISDIRSEP(c) ((c) == '\\' || (c) == '/')
# define FILECHCONV(c) tolower(c)
# define FILECMP(s1, s2) stricmp(s1, s2)
! # define FILENCMP(s1, s2, n) stricmp(s1, s2, n)
extern char *strchr_dirsep(char *path);
extern char *strrchr_dirsep(char *path);
# define chdir _chdir2
--- 252,259 ----
# define ISDIRSEP(c) ((c) == '\\' || (c) == '/')
# define FILECHCONV(c) tolower(c)
# define FILECMP(s1, s2) stricmp(s1, s2)
! # define FILENCMP(s1, s2, n) strnicmp(s1, s2, n)
! # define rlim_t long
extern char *strchr_dirsep(char *path);
extern char *strrchr_dirsep(char *path);
# define chdir _chdir2
*** os2/make.sed~ Mon Dec 19 12:02:26 1994
--- os2/make.sed Thu Dec 22 22:43:32 1994
***************
*** 21,32 ****
/^Makefile:/,/^$/c\
Makefile:\
! cmd /c copy $(srcdir)\\os2\\Makefile Makefile > null\
touch Makefile\
/^config.status:/,/^$/d
/^siglist.out:/,/^$/c\
siglist.out:\
! cmd /c copy $(srcdir)\\os2\\os2siglist.out siglist.out > null\
touch siglist.out\
--- 21,32 ----
/^Makefile:/,/^$/c\
Makefile:\
! cmd /c copy $(srcdir)\\os2\\Makefile Makefile > nul\
touch Makefile\
/^config.status:/,/^$/d
/^siglist.out:/,/^$/c\
siglist.out:\
! cmd /c copy $(srcdir)\\os2\\os2siglist.out siglist.out > nul\
touch siglist.out\
*** os2/makefile~ Thu Dec 22 12:03:14 1994
--- os2/makefile Thu Dec 22 22:44:24 1994
***************
*** 32,45 ****
SRCS = alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \
main.c misc.c missing.c path.c shf.c sigact.c syn.c table.c trap.c \
! tree.c tty.c var.c version.c vi.c subject.c
OBJS = os2.o alloc.o c_ksh.o c_sh.o c_test.o c_ulimit.o edit.o emacs.o \
eval.o exec.o expr.o history.o io.o jobs.o lex.o mail.o \
main.o misc.o missing.o path.o shf.o sigact.o syn.o table.o trap.o \
! tree.o tty.o var.o version.o vi.o subject.o
HDRS = edit.h expand.h ksh_dir.h ksh_limval.h ksh_stat.h ksh_time.h \
ksh_times.h ksh_wait.h lex.h options.h proto.h sh.h shf.h sigact.h \
! table.h tree.h tty.h subject.h
RCSFILES = $(SRCS) $(HDRS) ksh.1 Makefile.in configure.in config.h.top \
config.h.bot config.h.in conf-end.h acconfig.h aclocal.m4 \
mkinstalldirs install.sh new-version.sh siglist.in siglist.sh \
--- 32,45 ----
SRCS = alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \
main.c misc.c missing.c path.c shf.c sigact.c syn.c table.c trap.c \
! tree.c tty.c var.c version.c vi.c
OBJS = os2.o alloc.o c_ksh.o c_sh.o c_test.o c_ulimit.o edit.o emacs.o \
eval.o exec.o expr.o history.o io.o jobs.o lex.o mail.o \
main.o misc.o missing.o path.o shf.o sigact.o syn.o table.o trap.o \
! tree.o tty.o var.o version.o vi.o
HDRS = edit.h expand.h ksh_dir.h ksh_limval.h ksh_stat.h ksh_time.h \
ksh_times.h ksh_wait.h lex.h options.h proto.h sh.h shf.h sigact.h \
! table.h tree.h tty.h
RCSFILES = $(SRCS) $(HDRS) ksh.1 Makefile.in configure.in config.h.top \
config.h.bot config.h.in conf-end.h acconfig.h aclocal.m4 \
mkinstalldirs install.sh new-version.sh siglist.in siglist.sh \
***************
*** 100,111 ****
touch config.h
Makefile:
! cmd /c copy $(srcdir)\os2\Makefile Makefile > null
touch Makefile
# two steps to prevent the creation of a bogus siglist.out
siglist.out:
! cmd /c copy $(srcdir)\os2\os2siglist.out siglist.out > null
touch siglist.out
debugtools: check-fd$E check-sigs$E check-pgrp$E
--- 100,111 ----
touch config.h
Makefile:
! cmd /c copy $(srcdir)\os2\Makefile Makefile > nul
touch Makefile
# two steps to prevent the creation of a bogus siglist.out
siglist.out:
! cmd /c copy $(srcdir)\os2\os2siglist.out siglist.out > nul
touch siglist.out
debugtools: check-fd$E check-sigs$E check-pgrp$E
***************
*** 281,287 ****
shf.h table.h \
tree.h expand.h lex.h proto.h \
ksh_stat.h edit.h
! subject.o : subject.c sh.h config.h options.h conf-end.h \
! shf.h table.h \
! tree.h expand.h lex.h proto.h ksh_time.h \
! subject.h
--- 281,284 ----
shf.h table.h \
tree.h expand.h lex.h proto.h \
ksh_stat.h edit.h
!
*** exec.c~ Thu Dec 22 22:10:46 1994
--- exec.c Mon Dec 26 18:21:50 1994
***************
*** 974,983 ****
char *path;
int mode;
{
! static char *xsuffixes[] = { ".", ".ksh", ".cmd", ".exe", ".com",
! ".bat", (char *) 0
};
! static char *rsuffixes[] = { ".", ".ksh", ".cmd", ".bat", (char *) 0 };
int i;
char *tp = path + strlen(path);
char *p;
--- 974,983 ----
char *path;
int mode;
{
! static char *xsuffixes[] = { ".ksh", ".cmd", ".exe", ".com",
! ".bat", ".", (char *) 0
};
! static char *rsuffixes[] = { ".ksh", ".cmd", ".bat", ".", (char *) 0 };
int i;
char *tp = path + strlen(path);
char *p;