Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsetting of variables does not work #403

Closed
mgrottenthaler opened this issue Dec 7, 2018 · 1 comment
Closed

Unsetting of variables does not work #403

mgrottenthaler opened this issue Dec 7, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@mgrottenthaler
Copy link

According to the documentation you can unset a variable by typing set variable-name "":

set variable-name new-value (a value of "" will clear the variable contents),

This does not work in the current version. I get the following error message:

» set events.stream.output ""
» [16:00:51] [sys.log] [err] unknown or invalid syntax "set events.stream.output", type help for the help menu.

Environment

  • Bettercap version: 2.11
  • Kali Linux Rolling
  • Command line arguments: bettercap -iface eth1
  • Full debug output: [sys.log] [err] unknown or invalid syntax "set events.stream.output", type help for the help menu.

Steps to Reproduce

  1. type: set events.stream.output ""

Expected behavior: The variable is unset/set to an empty string

Actual behavior: Error!

@buffermet
Copy link
Member

Although an empty value is a defined value, a new command like unset could undefine environment variables.

@buffermet buffermet added the enhancement New feature or request label Dec 8, 2018
@evilsocket evilsocket added bug Something isn't working and removed enhancement New feature or request labels Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants