Comments (5)
Thank so much for the issue!
Escaping on the Windows is a mess. Depending on what terminal you are using, cmd.exe or PowerShell, and what version of PowerShell exactly, it is a bit different.
First of all, please check if this (triple single quotes) works for you:
fselect.exe name from '''C:\Projects\test test\'''
It worked!
In case of cmd.exe single quotes should work:
fselect.exe name from 'C:\Projects\test test\'
It worked!
Nevertheless, there is a few bugs in lexer's code I got to fix, and, more importantly, document the usage of all those quotes.
But there is still the case that I could not make work in directories with space in WSL using bash!
Thanks
from fselect.
You can make a new release with the fix (7e77c40)?
Thanks!
from fselect.
Thank so much for the issue!
Escaping on the Windows is a mess. Depending on what terminal you are using, cmd.exe or PowerShell, and what version of PowerShell exactly, it is a bit different.
First of all, please check if this (triple single quotes) works for you:
fselect.exe name from '''C:\Projects\test test\'''
In case of cmd.exe single quotes should work:
fselect.exe name from 'C:\Projects\test test\'
Nevertheless, there is a few bugs in lexer's code I got to fix, and, more importantly, document the usage of all those quotes.
from fselect.
Ok, so what about escaping on Linux or WSL?
The main point is to be able to pass the quotes to the command-line arguments somehow escaping them from the shell. This should work (quoting part of the string containing single quotes with double quotes):
fselect name from "'/home/user/test test/'"
Quoting the whole argument list with double quotes:
fselect "name from '/home/user/test test/'"
Or we can simply escape the single quotes:
fselect name from \'/home/user/test test/\'
from fselect.
Ok, so what about escaping on Linux or WSL?
The main point is to be able to pass the quotes to the command-line arguments somehow escaping them from the shell. This should work (quoting part of the string containing single quotes with double quotes):
fselect name from "'/home/user/test test/'"
Quoting the whole argument list with double quotes:
fselect "name from '/home/user/test test/'"
Or we can simply escape the single quotes:
fselect name from \'/home/user/test test/\'
The samples that you provide worked. The problem with the escaping is that I loose the autocomplete feature from the terminal (on Windows and Linux).
As I saw a commit of yours that seemed to be related, I thought it was worth publishing it! Anyway, thank you!
Great project this yours!
from fselect.
Related Issues (20)
- Suggestion for how to compare contents of two paths?
- following a question on StackOverFlow HOT 3
- created not working HOT 2
- SQLite backend in the future? HOT 3
- Automatically build debs with each release
- Print a message if a newer version is available
- thread 'main' panicked at 'Illegal datetime format' HOT 2
- [Build fail] mp4parse now will cause 'error[E0277]: cannot multiply `u64` by `NonZeroU8`' HOT 5
- `depth` is not recognized when I don't mention any path HOT 1
- Support rust 1.70.0 HOT 4
- Donation for fselect HOT 1
- Need lib.rs to include fselect as a library in another Rust binary HOT 1
- support between operator HOT 1
- Duration for MP3 is in seconds, but for mp4 in it is in milliseconds HOT 1
- Please rename the release name to standard form. HOT 3
- Alternative to SQL: SPL HOT 1
- MAX() function always returns 0 HOT 4
- Adding portable pre-built versions for Mac aarch64 and x86 to the release HOT 1
- [MacOS | homebrew | 0.8.6] Error after update from 0.8.5: TOML parse error missing field `is_font` 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 fselect.