Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 484
  • Last Modified:

How to suppress setenv output on Unix?

Hi,
How can I suppress setenv output on Unix?
0
Tolgar
Asked:
Tolgar
1 Solution
 
woolmilkporcCommented:
setenv is a csh/tcsh builtin to display or set environment variables.

When issued without parameters it displays the current settings, so the simplest way to suppress this command's output is obviously not issuing it.

Anyway, as usual

setenv >/dev/null

will discard the output of setenv, just as it does with the standard output of any other command.

By the way, when setting a variable with

setenv variable value

there will be no output at all.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now