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

Issue with poem length in 2nd_chamber #14

Open
brianjmalone opened this issue Aug 13, 2024 · 1 comment
Open

Issue with poem length in 2nd_chamber #14

brianjmalone opened this issue Aug 13, 2024 · 1 comment

Comments

@brianjmalone
Copy link

brianjmalone commented Aug 13, 2024

Hey.

I had to modify ./chest to ever not get 'Wrong!' because of a trailing space in bash dungeon.

% Old code:
lock_val=$(cat poem | wc -l)
% Modified code:
lock_val=$(cat poem | wc -l | tr -d ' ')

Cheers.

@beau2am
Copy link

beau2am commented Sep 25, 2024

Thank you for this, @brianjmalone. Your solution worked for me, and I learned about the translate characters tr command!

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

No branches or pull requests

2 participants