su on 10.2: TERM: Undefined variable

Miroslav Lachman 000.fbsd at quip.cz
Sat Nov 21 12:31:50 UTC 2015


I noticed some weird behavior of "su" command in shell scripts running 
from cron after upgrade from FreeBSD 8.4 to 10.2.

If I have this in script

su -m www -c 'ls -l'

then I get "TERM: Undefined variable" on the stderr if this script is 
run from cron.
It works fine on FreeBSD 8.4

Is it intentional behavior?

Miroslav Lachman


More information about the freebsd-stable mailing list