diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2001-07-05 06:35:03 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2001-07-05 06:35:03 +0000 |
| commit | 8fa6964a7822f71b5b43dd7ef2427c22f376efbd (patch) | |
| tree | 5f23db7b817ff126f501172f891c12cb9e109e22 /usr.bin | |
| parent | b7cd452d782f56f259e7ce88806047a4596278de (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/printenv/printenv.1 | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/usr.bin/printenv/printenv.1 b/usr.bin/printenv/printenv.1 index 4efcf04c71aa..b4fb31f123d5 100644 --- a/usr.bin/printenv/printenv.1 +++ b/usr.bin/printenv/printenv.1 @@ -36,7 +36,7 @@ .\" .Dd June 6, 1993 .Dt PRINTENV 1 -.Os BSD 3 +.Os .Sh NAME .Nm printenv , env .Nd print out the environment, set and print environment @@ -46,12 +46,13 @@ .Nm env .Op Fl .Op Fl i -.Op Ar name=value ...\& +.Op Ar name Ns = Ns Ar value ... .Op Ar command .Sh DESCRIPTION .Nm Printenv prints out the names and values of the variables in the environment, -with one name/value pair per line. If +with one name/value pair per line. +If .Ar name is specified, only its value is printed. @@ -73,8 +74,9 @@ manual page. executes .Ar command after modifying the environment as -specified on the command line. The option -.Ar name=value +specified on the command line. +The option +.Ar name Ns = Ns Ar value specifies an environment variable, .Ar name , @@ -104,13 +106,13 @@ of the variables in the environment, with one name/value pair per line. .Pp .Nm env is sometimes useful with the -.Qq #! +.Dq Li #! construct (see .Xr execve 2 ) . The only difference between -.Qq #!/usr/local/bin/foo +.Dq Li #!/usr/local/bin/foo and -.Qq #!/usr/bin/env /usr/local/bin/foo +.Dq Li "#!/usr/bin/env\ /usr/local/bin/foo" is that the latter works even if .Pa /usr/local/bin/foo is itself interpreted. |
