hi, there!
On Mon, 6 Mar 2000, Chet Ramey wrote:
> > >: to
> > >:
> > >: sh_subdirs=${SUBDIRS}; for f in $$sh_subdirs ; do ...
> > >
> >
> > >there's lots of other workarounds, from seeing if SUBDIRS is defined,
> > >to using make's .foreach.
> >
> > Another option is:
> >
> > for f in $$empty_list ${SUBDIRS}; do ...
> >
> > where 'empty_list' is any undefined sh variable.
>
> Not bad, but will break if the shell is run with the `-u' option on
> for some reason.
man 1 sh:
-u nounset
Write a message to standard error when attempting to expand a
variable that is not set, and if the shell is not
interactive, exit immediately. (UNIMPLEMENTED)
^^^^^^^^^^^^^
:)
/fjoe
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message