question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cd section fails in shell mode, returns no valid sections

See original GitHub issue

On macOS High Sierra 10.13.1

Cannot use cd command to change my context for queries. Queries work normally, and I can run /:context QUERY normally.

Steps to repro

  1. Install script locally, setup permissions
$ curl https://cht.sh/:cht.sh > /usr/local/bin/cht.sh
$ chmod +x /usr/local/bin/cht.sh
  1. install rlwrap for shellmode
$ brew install rlwrap
  1. launch shell mode
cht.sh --shell
  1. attempt to cd into any section/context
cht.sh> cd go
Invalid section: go
Valid sections:
cht.sh> cd csharp
Invalid section: csharp
Valid sections:
cht.sh> cd arduino
Invalid section: arduino
Valid sections:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
karlospcommented, Jul 19, 2018

Thanks. It is working for me.

1reaction
chubincommented, Jul 18, 2018

Yes, it is true, this was broken in this commit: https://github.com/chubin/cheat.sh/commit/b24381c7403f956e0dfcf10417c7ebe2b8165edb (and this was not detected by our regression tests). I will fix this problem today. Thank you very much reporting

Read more comments on GitHub >

github_iconTop Results From Across the Web

2. Shell Command Language
This chapter contains the definition of the Shell Command Language. ... A parameter is set if it has an assigned value (null is...
Read more >
Bash Reference Manual - GNU.org
This chapter briefly summarizes the shell's 'building blocks': commands, control structures, shell functions, shell parameters, shell expansions ...
Read more >
How to fix "not a valid identifier" error after setting environment ...
Separating parts of the variable's value with spaces. Environment variables can contain spaces, but in practice they are rarely used as ...
Read more >
Format scripts and job logs - GitLab Docs
When script commands return an exit code other than zero, the job fails and further commands do not execute. Store the exit code...
Read more >
How to Fix Grub Error: No Such Partition. Entering Rescue ...
Here's how to fix Grub Error : No Such Partition. Entering Rescue Mode. Grub Rescue.- Get genuine Windows keys at Prime Tech ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found