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

Wildcard for local filename changed to _ #8648

Closed
cyberduck opened this issue Mar 9, 2015 · 9 comments
Closed

Wildcard for local filename changed to _ #8648

cyberduck opened this issue Mar 9, 2015 · 9 comments
Assignees
Labels
bug cli Command Line Interface fixed
Milestone

Comments

@cyberduck
Copy link
Collaborator

783ffa2 created the issue

I have a cmd file with this line

duck --upload ftps://ftp.blbblbl.be:990/ \\w2kfdf\public\DdfsS\Incdsf\Csdf\Bsf\*.txt -u 2sdfsdff -p sdfssdf

He connects perfectly but when trying to upload he changes the *.txt to _.txt. Off course he then gives error no files are found..
How can I solve this?

gr.

Sebastien

@cyberduck
Copy link
Collaborator Author

783ffa2 commented

Could it be that there is a issue with character encoding?
I saw that after every command it puts a weird sign like à and the progress bar is ??????????????????????

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

The CLI output is always in UTF-8 encoding. You need to make sure that UTF-8 characters are correctly displayed in your command prompt. The default Windows command prompt has very limited support for alternative encodings though. You should give (http://babun.github.io/) a try.

@cyberduck
Copy link
Collaborator Author

783ffa2 commented

I do understand but we are talking about Duck CLI made for windows??
So If it doesn't understand basic signs like * what is the use of Duck CLI??

Or can I change something on the command prompt of my windows to see the characters displayed correctly..

So the issue is that I have the duck cli command in a cmd file. It just changes automatically the * into a _

@cyberduck
Copy link
Collaborator Author

783ffa2 commented

I've changed codepage to UTF-8 with CHCP 65001 command to no solution.
He just shows the same issue. So he read the complete command, executes it fine, logs in and so on.
But when uploading he changes the * to a _ and then says no files found off course..

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

The encoding issue is not related to the wildcard problem you see. I'll try to reproduce your wildcard issue.

@cyberduck
Copy link
Collaborator Author

783ffa2 commented

Thank you very much for investigating..
You can test it out by just making a windows cmd file and try to upload from a unc path*.txt for example.
You will see that he changes the * to _ causing off course to find nothing..
I know its stupid but would really love to use CLI but this kind of breaks my usage ot the tool..
thnx for your effort..

@cyberduck
Copy link
Collaborator Author

783ffa2 commented

Any luck in reproducing this problem??? Really need to get this working..

@cyberduck
Copy link
Collaborator Author

783ffa2 commented

I'm sorry for pushing this..
Anyone has idea.. it's clearly a duck error since other ftp CLI doesn't have this issue.

So As mentioned above.. He changes my * to _ when executing the cmd file.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Removed character substitution in 7fff87f. However we rely on the terminal used to expand the globbing pattern in filenames and give multiple file arguments to the program. This is how it works for example with bash on Linux and OS X.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug cli Command Line Interface fixed
Projects
None yet
Development

No branches or pull requests

2 participants