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

Use insectrc in non-interactive operation #377

Closed
sternj opened this issue May 10, 2023 · 1 comment · Fixed by #392
Closed

Use insectrc in non-interactive operation #377

sternj opened this issue May 10, 2023 · 1 comment · Fixed by #392
Assignees
Labels
Milestone

Comments

@sternj
Copy link

sternj commented May 10, 2023

Defining a single function in .insectrc as:

logb(n,b) = log(n) / log(b)

and attempting to run

insect "logb(4,2)"

what I get is Parse error at position 7: Expected ")". When I do so inside the interactive shell, I get

$ insect
>>> logb(4,2)

  logb(4, 2)

   = 2
@triallax triallax added the bug label May 16, 2023
@triallax triallax self-assigned this May 16, 2023
@triallax triallax added this to the v5.9.0 milestone May 16, 2023
@sharkdp
Copy link
Owner

sharkdp commented May 25, 2023

Thank you for reporting this.

triallax added a commit to triallax/insect that referenced this issue Jul 7, 2023
- Allow passing expression as multiple arguments
  This allows e.g. `insect 1 + 1`, whereas previously this would've been
  considered an error.
- Use insectrc in non-interactive mode too.
  Fixes sharkdp#377.
- Add alternative location for insectrc ($XDG_CONFIG_HOME/insect/
  insectrc). Fixes sharkdp#307.
- Exit with non-zero exit code if evaluating argument fails.
triallax added a commit to triallax/insect that referenced this issue Jul 7, 2023
- Allow passing expression as multiple arguments
  This allows e.g. `insect 1 + 1`, whereas previously this would've
  caused an error.
- Use insectrc in non-interactive mode too.
  Fixes sharkdp#377.
- Add alternative location for insectrc ($XDG_CONFIG_HOME/insect/insectrc).
  Fixes sharkdp#307.
- Exit with non-zero exit code if evaluating argument fails.
triallax added a commit to triallax/insect that referenced this issue Jul 21, 2023
- Allow passing expression as multiple arguments
  This allows e.g. `insect 1 + 1`, whereas previously this would've
  caused an error.
- Use insectrc in non-interactive mode too.
  Fixes sharkdp#377.
- Add alternative location for insectrc ($XDG_CONFIG_HOME/insect/insectrc).
  Fixes sharkdp#307.
- Exit with non-zero exit code if evaluating argument fails.
triallax added a commit that referenced this issue Jul 22, 2023
- Allow passing expression as multiple arguments
  This allows e.g. `insect 1 + 1`, whereas previously this would've
  caused an error.
- Use insectrc in non-interactive mode too.
  Fixes #377.
- Add alternative location for insectrc ($XDG_CONFIG_HOME/insect/insectrc).
  Fixes #307.
- Exit with non-zero exit code if evaluating argument fails.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants