Skip to content

Commit

Permalink
Disable fixargs() on Solaris (re: 159fb9e, cefe087)
Browse files Browse the repository at this point in the history
It doesn't work on Solaris either.
  • Loading branch information
McDutchie committed Jan 10, 2021
1 parent 159fb9e commit 9b7c392
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cmd/ksh93/sh/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
/* These routines are referenced by this module */
static void exfile(Shell_t*, Sfio_t*,int);
static void chkmail(Shell_t *shp, char*);
#if defined(_lib_fork) && !defined(_NEXT_SOURCE) && !defined(__FreeBSD__)
#if defined(_lib_fork) && !defined(_NEXT_SOURCE) && !defined(__FreeBSD__) && !defined(__sun)
static void fixargs(char**,int);
#else
# define fixargs(a,b)
Expand Down Expand Up @@ -697,7 +697,7 @@ static void chkmail(Shell_t *shp, char *files)
# define PSTAT 1
#endif

#if defined(_lib_fork) && !defined(_NEXT_SOURCE) && !defined(__FreeBSD__)
#if defined(_lib_fork) && !defined(_NEXT_SOURCE) && !defined(__FreeBSD__) && !defined(__sun)
/*
* fix up command line for ps command
*
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ getPsOutput() {
while [[ $actual == [[:space:]]* ]]; do actual=${actual#?}; done
while [[ $actual == *[[:space:]] ]]; do actual=${actual%?}; done
}
if [[ $(uname -s) != FreeBSD ]] &&
if [[ ! $(uname -s) =~ ^(FreeBSD|SunOS)$ ]] &&
getPsOutput "$$" &&
[[ "$SHELL $0" == "$actual"* ]] # "$SHELL $0" is how shtests invokes this script
then expect='./atest 1 2'
Expand Down

0 comments on commit 9b7c392

Please sign in to comment.