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

File write bug #28

Closed
hahwul opened this issue Feb 21, 2021 · 1 comment
Closed

File write bug #28

hahwul opened this issue Feb 21, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@hahwul
Copy link
Owner

hahwul commented Feb 21, 2021

파일 경로에 - 가 있는 경우 파일로 저장되지 않음

정상

$ wc -l docs/http.txt | cut -d " " -f 1 | ~/go/bin/gee -debug 33.txt  
[DEBUG][MSG] Running on Debug mode
[DEBUG][FILES] [33.txt]
[DEBUG][MSG] Starting gee
1132841
[DEBUG][MSG] Finish gee, graceful shutdown...

비정상

$ wc -l docs/http.txt | cut -d " " -f 1 | ~/go/bin/gee -debug 3-3.txt
[DEBUG][MSG] Running on Debug mode
[DEBUG][FILES] []
[DEBUG][MSG] Starting gee
1132841
[DEBUG][MSG] Finish gee, graceful shutdown...

특수문자 별로 모두 테스트해봤고, - 만 현상재현

@hahwul hahwul added the bug Something isn't working label Feb 21, 2021
@hahwul
Copy link
Owner Author

hahwul commented Feb 21, 2021

이유는.. flag에서 -가 들어간 문자를 옵션으로 처리하려고 하는 것 같음..
다만 맞다면 파싱 에러가 나야하는데..

@hahwul hahwul closed this as completed in 421f2e2 Feb 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant