jarv / cmdchallenge

This repo is mirror of https://gitlab.com/jarv/cmdchallenge
https://about.cmdchallenge.com
MIT License
721 stars 71 forks source link

just_the_files/ chanlange does not accept #122

Open GeoRW opened 7 years ago

GeoRW commented 7 years ago

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 commented 7 years ago

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.