Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Nov 2015 13:31:39 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        freebsd-stable Stable <freebsd-stable@FreeBSD.org>
Subject:   su on 10.2: TERM: Undefined variable
Message-ID:  <5650642B.5030707@quip.cz>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5650642B.5030707>