Skip to content

How to run emsdk_env.sh without printing stuff to stdout #946

Closed

Description

@jcubic

So I just wanted to run tmux and this how it looks like:

tmux

that came from .bash_profile line:

source "/mnt/ssd/projects/jcubic/wasm/emsdk/emsdk_env.sh"

The common rule in Unix is not not print anything to stdout if you don't have nothing to say.

I know that I can modify the code to not print anything to stdout, that most of the time is ignored. But I would like to have this fixed in the tool, since other users may as well need to fix the file them self.

Activity

  1. sbc100 commented on Dec 14, 2021

    @sbc100
    Collaborator

    I agree it should be easy to make this script silent. We could add an environment variable perhaps.

    For now does just adding 2> /dev/null work for you? (BTW all these message go to stderr since stdout is the actual bash script that the source command executes).

  2. jcubic commented on Dec 15, 2021

    @jcubic
    Author

    I was trying > /dev/null. 2> redirect works fine.

  3. added a commit that references this issue on Aug 19, 2022
    38d91f9
  4. added a commit that references this issue on Aug 19, 2022
    e456ebd
  5. added a commit that references this issue on Feb 7, 2023
    f55ecf5
  6. added a commit that references this issue on Feb 3, 2026
    586a18f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions