* Oliver Fromme <[EMAIL PROTECTED]> [2003-10-31 21:16 +0100]: > Maybe I'm not understanding your intentions, but isn't that > already possible using "set | sed -n '/^foo_/s/=.*//p'"? > > Or do you want to avoid external programs? In that case it > would be a little bit more difficult to do, but it's still > possible to do with existing builtins: > > indexes() > { > for i in `set`; do > case $i in > $1*) echo ${i%%=*} > esac > done > }
I think both of these could fail with multiline values. Nicolas _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"