Subject: Re: command-line editing and "standard" shells....
To: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
From: Jim Wise <jwise@unicast.com>
List: current-users
Date: 03/19/1999 23:52:25
-----BEGIN PGP SIGNED MESSAGE-----
On Fri, 19 Mar 1999, Bill Sommerfeld wrote:
>> export ENV='${ENVFILE[(_$-=1)+(_=0)-(_$-!=_${-%%*i*})]}'
>
>Well, I thought sendmail.cf rewrite rules syntax was obscure, but this
>beats it hands down.. and you expect random users to get that right
>without making a typo?
This is necessary only to keep your .env from being sourced by a
non-interactive shell. If your .env is safe in a non-interactive
shell, you can just do:
ENV=~/.env
and .env is sourced by each ksh as it starts.
- --
Jim Wise
jwise@unicast.com
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv
iQEVAwUBNvMpj4kLDoBfn5jPAQGHPggAokLBfPtsZF3XetcOgmkF3rYAVcGT3k2T
VJQ2VLuxYUiCfv2oqZ5S1v/HkztKbi+M6E87iRHvKvdVyKPsDf/B2+qOH7M6V9Bj
OkYRZi360lzB6fk9WJx3FAFswe9JP1jvdn09eN+jzifd/0YkYOJ5fNyTd1hP6qoD
O2VszCeQyVDjGfpkFOORvMc7BYVm2OMtH0EmnNAo6uo4t+VGeEsn1t0e+wqWfLOp
TudbCK87MLqih9DpSr31v2bFX05JRogcrvtKhatwTeGdIAWcMb9pZYTTErouPE1G
bLePKWZv7rehk6mpwpyiQYhIIcuVWEdAmG1IxOq5ClcXhAHDooJVIw==
=91w9
-----END PGP SIGNATURE-----