cd section fails in shell mode, returns no valid sections
See original GitHub issueOn 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
- Install script locally, setup permissions
$ curl https://cht.sh/:cht.sh > /usr/local/bin/cht.sh
$ chmod +x /usr/local/bin/cht.sh
- install rlwrap for shellmode
$ brew install rlwrap
- launch shell mode
cht.sh --shell
- 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:
- Created 5 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks. It is working for me.
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