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

just_the_files/ chanlange does not accept #122

Open
GeoRW opened this issue Feb 20, 2017 · 1 comment
Open

just_the_files/ chanlange does not accept #122

GeoRW opened this issue Feb 20, 2017 · 1 comment
Labels

Comments

@GeoRW
Copy link

GeoRW commented Feb 20, 2017

Steps to reproduce

If applicable please provide a direct link to the challenge, example: https://cmdchallenge.com/#/just_the_files

=================================================
This is a valid solution but output is not sorted as expected by the website:

ls -A -F -R | grep -v ":" | grep -v "/"

README
beatae.flac
error.doc
libero.xls
necessitatibus.doc
totam
animi.doc
corporis.xls
odit.doc

==========================================
this solution was accepted:

find . -type f -printf '%f\n'

error.doc
corporis.xls
odit.doc
animi.doc
necessitatibus.doc
totam
beatae.flac
README
libero.xls

@jarv
Copy link
Owner

jarv commented Feb 20, 2017

Thanks for the bug report, it looks like this command outputs the following when run on the linux host:

# ls -A -F -R | grep -v ":" | grep -v "/"
README
beatae.flac
error.doc
libero.xls
necessitatibus.doc
totam



animi.doc
corporis.xls
odit.doc

The extra blank lines are causing it not to match and not being displayed properly on the jquery terminal.

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

No branches or pull requests

2 participants