Comments (3)
Thanks for your bug report.
I don't have access to any machine with OSX Maverick, hence I can't debug this.
Do you have any idea why the regular expression fails? It works for me on Debian
GNU/Linux. (The sed regular expression in case is on lines four and five in Makefile.)
from erlang-uuid.
The problem is \s
is part of the GNU sed
extensions and is not valid in the vanilla sed
bundled with OSX, so the output is the entire line identified by /vsn/
.
$> sed -n -e '/vsn/ {s/.*,\s*"\([0-9][0-9.]*\)".*/\1/' \
-e 'p' -e '}' src/uuid.app.src
{vsn, "0.4.6"}
Replacing it with a literal space works in OSX shell, but for script cross-compatibility it's probably best to use the POSIX character class [[:blank:]]
:
$> sed -n -e '/vsn/ {s/.*,[[:blank:]]*"\([0-9][0-9.]*\)".*/\1/' \
-e 'p' -e '}' src/uuid.app.src
0.4.6
Note that I've only tested this on OSX.
from erlang-uuid.
Fixed with 446dd9d
from erlang-uuid.
Related Issues (9)
- comparison functions HOT 1
- Can't make HOT 2
- uuid1() fails in Erlang 19.3 but not in Erlang 20 HOT 5
- Generating invalid UUIDs. HOT 1
- Fixes for hardware addresses that are zero or not six octets HOT 1
- hex package HOT 2
- Sed: extra characters at the end of "p" command HOT 4
- UUIDv1 generation is incorrect HOT 1
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 erlang-uuid.