conf/163432: Environment variables set from /etc/login.conf do not have surrounding quote characters removed

Jaakko Heinonen jh at FreeBSD.org
Sun Dec 18 18:20:10 UTC 2011


The following reply was made to PR conf/163432; it has been noted by GNATS.

From: Jaakko Heinonen <jh at FreeBSD.org>
To: Mike Clarke <jmc-fbsdpr at milibyte.co.uk>
Cc: bug-followup at FreeBSD.org
Subject: Re: conf/163432: Environment variables set from /etc/login.conf do
 not have surrounding quote characters removed
Date: Sun, 18 Dec 2011 20:18:37 +0200

 Hi,
 
 On 2011-12-18, Mike Clarke wrote:
 > If /etc/login.conf is used to set an environment variable and the
 > value is enclosed between quote characters the quotes are not stripped
 > off when setting the variable. This problem only arises with FreeBSD
 > 9, the quotes were removed with earlier versions.
 > 
 > :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES,EXINIT="set ai ic sw=3":\
 
 Can you clarify the "earlier versions"? I get this on 8.2-RELEASE:
 
 $ env
 .
 .
 EXINIT="set ai ic sw=3"
 
 -- 
 Jaakko


More information about the freebsd-bugs mailing list