Comments (5)
@qjd2413 Thanks for reporting the issue!
"It works on my machine" (TM)(C) with the same versions...
Could you send the results of those commands?
$ uname -a
$ which bash
Also, could you add set -o xtrace
(debug mode) after the first line in
exercises/bob/bob.sh
, run:
$ cd exercises/bob && bash bob.sh "\n\r \t\u000b\u00a0\u2002"
And send the result?
from bash.
$> uname -a
Linux machine-name 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016
x86_64 x86_64 x86_64 GNU/Linux
$> which bash
/bin/bash
$> bash bob.sh "\n\r \t\u000b\u00a0\u2002"
++ printf %b '\n\r \t\u000b\u00a0\u2002'
+ input='
'
+ input=
+ [[ == '' ]]
+ [[ == *[[:upper:]]* ]]
+ [[ == \? ]]
+ echo Whatever.
Whatever.
from bash.
Strange, "\u00a0" is matched by [[:space:]] on mac but not Linux. I could repro and fix on Ubuntu.
from bash.
Usage this for utf support:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
from bash.
Fixed
from bash.
Related Issues (20)
- Don't need `node` for `bats`
- Pangram test fails with "bad substitution" HOT 7
- Not running tests with `bash` specifically HOT 10
- command rev is not always working in exercism tests HOT 7
- Tests for armstrong-numbers exercise do not cover numbers with leading zeros HOT 6
- The `error-handling` instructions could use more bash-specific details.
- Bash as a scripting langauge and not Yet Another Programming Language? HOT 17
- Rework headings in instructions.append.md HOT 1
- Why does this file exist in the Gigasecond exercise?
- Add check in validate_one_exercise that checks for inadvertant comment-out skips
- Copy the "Skipped tests" section from `tests.md` to `TESTS.md`
- D&D: Add a test to ensure that hitpoints is calculated from constitution
- Sync recent updates
- Is the track exercises page counting students differently? HOT 1
- Gigasecond instructions should have some bash-specific info appended
- Simplify two-fer tests _a bit_
- 'Word Count' test 'handles expanded lists' is mis-executed
- Rethink difficulty of word-count
- Building a training set of tags for bash HOT 26
- Foregone exercises HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bash.