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

Re: Exported (ba)sh functions in the environment

Philip Ashmore <contact@philipashmore.com> writes:

> Here's where I wish I was a shell script guru:

>    for var in `cat set.txt`; do
>       { if in env discard }
>    done
>    { sort offenders by decending size }

> Here's a summary of the ones that caught my eye. Sorry if I missed
> anyone out!

Oh.  This is smelling like artifacts of bash-completion; perhaps set is
dumping your completion settings.  I'm pretty sure those are not copied
into subshells and are only loaded in interactive shells.

Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>

Reply to: