Thanks to visit codestin.com
Credit goes to github.com

Skip to content

silent does not always work #851

@GuyMograbi

Description

@GuyMograbi

node 8.9.1
shelljs 0.8.1
mac osx

I expect this code to not produce any output but it does.

const shell = require('shelljs');

shell.exec('git rev-parse --abbrev-ref  master2@{upstream}', {silent:true});

Run it in a git repository that does not have a branch master2 and you should see an error printed

exec: fatal: no such branch: 'master2'

Metadata

Metadata

Assignees

Labels

fixBug/defect, or a fix for such a problemmedium priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions