Comments (2)
This isn't a problem per se because bash will interpret this correctly despite the additional quotes.
To properly fix this, the code should know when an argument is "glued" to other words, but I guess I need regexes with lookahead for that, and portability would be very difficult.
In the meantime, I can quote if, and only if, the value has more than one word. That should cover most of the cases.
from navi.
Another option could be to allow the user to decide, with maybe something like <r foo>
or <<foo>>
for "raw output" so to speak. Though it's true that the "one word" rule will likely cover the vast majority of cases.
from navi.
Related Issues (20)
- Provide Statically Compiled Binaries for (aarch64|arm64) Linux HOT 1
- Using https://devhints.io/ as a backend HOT 1
- ":/Scoop/apps/gow/current/bin/bash.exe": E:Scoopappsnavi2.23.0navi.exe: command not found HOT 1
- Unable to execute some custom commands HOT 1
- Add optional arguments HOT 2
- Optional placeholder value for variable HOT 3
- Query with pages in subdirectory (having comma) don't work as expected HOT 3
- Import cheat sheets from other tools HOT 1
- How do I select a snippet but not execute itοΌ HOT 1
- The preview format used on Windows is only for "cmd.exe". HOT 1
- /usr/bin/bash: line 1: C:ProgramDatachocolateylibnavitoolsnavi.exe: command not found HOT 4
- [feature request] Make `navi` variables to `fzf`'s `header` option HOT 3
- ZSH widget doesn't work with VI mode HOT 1
- navi --tldr not working even with rust client tlrc HOT 4
- Add a check before running command and use glow to print markdown HOT 1
- Empty output when a variable only contains `fzf` options
- Why do we have an overlap in `fzf` options?
- Sort by usage HOT 1
- Base navi directory for cheats-path different from config-path HOT 1
- Default value for parameter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from navi.