Live data from Hacker News

Twelve Days of Shell

12days.cmdchallenge.com

41–50 of 89 posts

Re: Twelve Days of Shell

#41
I mean if you ask for the lines that start with "the" and expect lines that start with "The", maybe you should say it in the instructions.

After the 3rd time I had to peek at "learn" to understand what was even asked, I gave up. This is more annoying than fun.

Re: Twelve Days of Shell

#42
post #40

Earlier quoted context omitted.

I tried again to see if they fixed it. No it still doesn't work. You'll get the output but look closer. Output does not match expected lines - try again So you can't move on to the next level.

they must have fixed it. Works for me, including new sessions on separate browser.

Still doesn't work for me in a new session separate browser. I get the output but I also get this message

  Output does not match expected lines - try again
Does it give you the clue for the next level? Can you or someone else share a screenshot or something so I can compare to find out what I'm missing?

Re: Twelve Days of Shell

#43
post #40

Earlier quoted context omitted.

they must have fixed it. Works for me, including new sessions on separate browser.

Still doesn't work for me in a new session separate browser. I get the output but I also get this message Output does not match expected lines - try again Does it give you the clue for the next level? Can you or someone else share a screenshot or something so I can compare to find out what I'm missing?

For clean session it goes to the next level.

There is some mess if you already finished the thing, and then use url to particular level on a clean session. For me it looked like I am on level 2, but site expected answers to 1.

When I start from scratch with proper link (main page) simple:

grep laugh *

works

Re: Twelve Days of Shell

#45
It doesn't handle backspace correctly. The character is erased visually, but not removed from the buffer, so when you type the next character, the erased character reappears. Make one typo and you have to reload the page.

Re: Twelve Days of Shell

#46

How would one make a true shell in a website like this one? (As in, is there an open source library to host an interactive shell for educational purposes - eg codecademy)

I couldn't tell you the exact details (I'm only passingly familiar with how it works myself), but you'd almost certainly want to start by looking into web assembly.

I found a-Shell's documentation[1] quite interesting, it describes their use of web assembly and offers some practical tips for compiling stuff so it can work in a sandboxed environment.

[1]: https://bianshen00009.gitbook.io/a-guide-to-a-shell/lets-do-...

Re: Twelve Days of Shell

#47

The good: Nice exercises for beginners. Tab-completion, accepts readline characters like ctrl-u. The bad: You don't see the (wrong) output if you don't get it right the first time, making it hard to work iteratively and having to guess what the question actually intended. E.g. 'Seven files that start with "Santa"' actually wants file names that start with Santa, after some questions that had you use "grep" to search…

The tab completion sorta works but it seems to be simulated, doesn't understand subdirectories etc.

Re: Twelve Days of Shell

#48
post #43

Earlier quoted context omitted.

Still doesn't work for me in a new session separate browser. I get the output but I also get this message Output does not match expected lines - try again Does it give you the clue for the next level? Can you or someone else share a screenshot or something so I can compare to find out what I'm missing?

For clean session it goes to the next level. There is some mess if you already finished the thing, and then use url to particular level on a clean session. For me it looked like I am on level 2, but site expected answers to 1. When I start from scratch with proper link (main page) simple: grep laugh * works

Worked. Thanks!

Re: Twelve Days of Shell

#49
post #11

Hey this doesn’t work : first solution “ls -al” which I use all the time to list directories was rejected in the second question I used awk and was rejected it expected grep I think a beginner could be doing it right but then be told they are wrong as you aren’t evaluating actual commands Best would be to like actually run it* and then check solutions out with awk that it pattern matches * aka give me a shell ok wort…

It does seem to actually run the submitted commands, and awk is there.

Re: Twelve Days of Shell

#50

Meta: the first day of the Twelve Days of Christmas is Christmas Day (December 25) itself: * https://en.wikipedia.org/wiki/Twelve_Days_of_Christmas The days before the 25th are part of the season of Advent: * https://en.wikipedia.org/wiki/Advent

Too many people I know spend their boxing day packing up their tree. Christmas is over before it's barely begun! But that's kind of understandable when Christmas begins in September if you believe the retailers.

> boxing day

Ah, a fellow Commonwealther (I'm Canadian):

* https://en.wikipedia.org/wiki/Boxing_Day

* https://en.wikipedia.org/wiki/Commonwealth_of_Nations

Post reply on HN