autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix `set -o posix' again


From: Bruce Korb
Subject: Re: Fix `set -o posix' again
Date: Sat, 11 Feb 2006 08:11:50 -0800
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

Paul Eggert wrote:
Ralf Wildenhues <address@hidden> writes:


To tell you the truth, I'm a bit at a loss how to go about this.


How about this idea instead?

for i in `(set -o) 2>/dev/null`; do
  case $i in
  posix) set -o posix;;
  esac
done

Clever.  Would it not be easier thus:

case "`set -o 2>/dev/null`" in
*"posix "* ) set -o posix ;;
esac

why bother with a loop?  :)

There's good reason for putting stuff like this in front of
a lot of eyes....Thanks, Paul.

Cheers - Bruce





reply via email to

[Prev in Thread] Current Thread [Next in Thread]