mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 11:42:21 +00:00
It doesn't work on Solaris either.
This commit is contained in:
parent
159fb9ee27
commit
9b7c392a7c
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue