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 en-
     vironment	for  reference in subsequent labels.  By default entries are ap-
     pended 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 defined
     by SD.

FreeBSD ports 15.quarterly	January 17, 2026			 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+15.1.quarterly>

home | help