From owner-freebsd-questions@FreeBSD.ORG Fri Oct 19 20:42:56 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD6AD16A420 for ; Fri, 19 Oct 2007 20:42:56 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.229]) by mx1.freebsd.org (Postfix) with ESMTP id 68CBE13C48E for ; Fri, 19 Oct 2007 20:42:54 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so552320wxd for ; Fri, 19 Oct 2007 13:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; bh=1Aq9A7XLZnHA90FU2hgm4GyPfjYU1nILLaMy0yKwgMI=; b=Lad6Wvtw3CbR4ccZbC+EMxoM7RDqwd8RSX+bAwbuLwsxA5UzvvqoG6DYveBBA37MM3ZXYxB4vTZuZo7iT16worWKgal26d7e0vHhD8TzQWxoI97eQ6b+nBSmsaVQoY74W/UPkPCiMNUMUER54BXgay5GRNxGJyQq6MwfYSeLb5E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=nuiZeqNbUUCdgxf7/hN2MX5edsyd4ZpGiYHVuZuVmp9gh70ZzdCQuKSRafS7UIJShoxjqFyJEoGH6YCl6rqlfz8vkZbKo5NNDCyIQyQsODA7JvxR26aust/8ROQfQ0Dva8H5+xEUk1wdZ7wmi6JFsqpJy2BFHDTKErYSb336Als= Received: by 10.90.93.6 with SMTP id q6mr3540174agb.1192824995548; Fri, 19 Oct 2007 13:16:35 -0700 (PDT) Received: from ?192.168.2.2? ( [67.85.89.184]) by mx.google.com with ESMTPS id c15sm3550393anc.2007.10.19.13.16.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 19 Oct 2007 13:16:34 -0700 (PDT) Message-ID: <4718D7D4.2010604@gmail.com> Date: Fri, 19 Oct 2007 16:14:12 +0000 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.6 (X11/20071016) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [stupid question] setting env variables globally X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2007 20:42:56 -0000 Is there any way to set the default value of a enviromental variable globally. Specifically I want JAVA_VERSION to default to "1.6" unless the user sets it other wise. By global I mean no matter how something is invoked (command line, script, GUI, IPC trigger, etc.) if it checks the value of the var it gets the same value (and I want to do this system wide)