Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
RENV(1)			    General Commands Manual		       RENV(1)

NAME
       renv -- normalize environment variables

SYNOPSIS
       renv file ... [-q]
       renv name="value" [file]

DESCRIPTION
       Filter  environment  variables  in  a  format suitable for sh(1).  Only
       lines defining variable names using the characters [_a-zA-Z0-9] with  a
       value in	double-quotes are emitted.  Values may also be empty.

	     A="one"
	     B="two"
	     D=""

       If the first argument is	in the format `name=value' renv	will store and
       environment for reference in subsequent labels.	By default entries are
       appended	to $SD/local.env.

       Optional	arguments are as follows:

       -q      Validate	only, do not print lines.

LITERALS
       Escape sequences	starting with `\', or subshells	using `$(...)' are not
       permitted.

       `$$' expands to a single	dollar sign.

EXAMPLES
       Print environment variables in a	normalized format

	     $ renv final.env

       Save the	status code of the last	command

	     $ renv LAST_EXITSTATUS="$?"

SEE ALSO
       rset(1)

CAVEATS
       Tabs  and  multiple spaces are converted	to into	a single space.	 There
       is no provision for embedding literal double-quotes.

       renv must be found in the current working directory or in the path  de-
       fined by	SD.

FreeBSD	Ports 14.quarterly     February	6, 2025			       RENV(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=renv&sektion=1&manpath=FreeBSD+Ports+14.3.quarterly>

home | help