GithubHelp home page GithubHelp logo

Comments (5)

Dominiquini avatar Dominiquini commented on July 20, 2024 1

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.

Dominiquini avatar Dominiquini commented on July 20, 2024 1

You can make a new release with the fix (7e77c40)?

Thanks!

from fselect.

jhspetersson avatar jhspetersson commented on July 20, 2024

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.

jhspetersson avatar jhspetersson commented on July 20, 2024

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.

Dominiquini avatar Dominiquini commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.