Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt with D*** db names #65

Open
pydemo opened this issue Jul 26, 2019 · 2 comments
Open

Prompt with D*** db names #65

pydemo opened this issue Jul 26, 2019 · 2 comments
Labels
good first issue

Comments

@pydemo
Copy link

@pydemo pydemo commented Jul 26, 2019

Prompt for db DY_DeskPLRSRange03.db becomes this

C:\temp\liteFri Jul 26 17:21:37 2019Y_DeskPLRSRange03.db>

probably \D is treated as sysdate?

@amjith
Copy link
Member

@amjith amjith commented Jul 30, 2019

You're right. That's an interesting issue. I wonder if there is an easy way to detect whether the \D is part of the prompt or path. 🤔

@amjith amjith added the good first issue label Jul 21, 2020
@thorstenkampe
Copy link

@thorstenkampe thorstenkampe commented Dec 8, 2020

Same issue here:

> litecli  --prompt "[\d]> " --database F:\cygwin\home\thorsten\.jupyter\nbsignatures.db
Version: 1.4.1
Mail: https://groups.google.com/forum/#!forum/litecli-users
GitHub: https://github.com/dbcli/litecli
[F:\cygwin\home\thorsten\.jupyter
bsignatures.db]>

An easy fix would be to replace all backslashes with slashes:

> litecli  --prompt "[\d]> "  --database F:/cygwin/home/thorsten/.jupyter/nbsignatures.db
Version: 1.4.1
Mail: https://groups.google.com/forum/#!forum/litecli-users
GitHub: https://github.com/dbcli/litecli
[F:/cygwin/home/thorsten/.jupyter/nbsignatures.db]>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue
Projects
None yet
Development

No branches or pull requests

3 participants