Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: dblake@popper.ucsf.edu (David T. Blake)
Subject: Re: wordexp (not Re: nanosleep ?)
Date: 1999/08/25	[thread overview]
Message-ID: <slrn7s8snf.gh6.dblake@popper.ucsf.edu> (raw)
In-Reply-To: slrn7s8lnb.gg3.dblake@popper.ucsf.edu

David T. Blake <dblake@popper.ucsf.edu> wrote:
> The issue really arises if ksh considers the environment from
> which you call wordexp a restricted one, in which case ksh simply
> does not do the expansion. That means the C library fails in a 
> miserable and confused way leaving you without word expansion
> at all, and no errors reported by the routine. 

Hate to followup on my own post, but I realized that the
real issue I wish to address is not clear in my posting.
I really don't care too much how libc does the wordexp
function as long as it works properly. It seems to work
by executing the command

ksh -c set -- ~/.Xdef*; echo $#; while [ $# -gt 0 ]; \
do echo "${#1}"; echo "$1"; shift; done 


Where ~/.Xdef* is the argument you wish to expand. Under
some circumstances this fails, and I THINK this is due to ksh
considering the shell environment restricted. I wish to know
how to make the word expansion work all the time irrespective
of the environment and program that call it. 

Any ideas ??

-- 
Dave Blake
dblake@phy.ucsf.edu



  reply	other threads:[~1999-08-25  4:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-20  4:00 nanosleep ? Andreas Schnorr ATS/AT #47493
1999-08-20  4:00 ` linnartz
1999-08-23  4:00 ` Mark Koennecke
1999-08-23  4:00   ` Dave Butenhof
1999-08-23  4:00     ` David T. Blake
1999-08-25  4:00       ` Dave Butenhof
1999-08-25  4:00         ` David T. Blake
1999-08-25  4:00       ` wordexp (not Re: nanosleep ?) Daniel S. Riley
1999-08-25  4:00         ` David T. Blake
1999-08-25  4:00           ` David T. Blake [this message]
1999-08-26  4:00             ` Peter da Silva
1999-08-26  4:00               ` David T. Blake
1999-08-26  4:00                 ` Peter da Silva
1999-08-24  4:00     ` nanosleep ? Mark Koennecke
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox