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
_______________________________________________
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to