You are not logged in.
date -u +%W$(uname)|sha256sum|sed 's/\W//g'
Does not work correctly for bash on my Linux box, bash-4.1_p9, it eats the "-" at the end of the line.
It is supposed to remove the 2 spaces between the hash and the dash, I had to put the dash back before the registration page would accept my input
date -u +%W$(uname)|sha256sum|sed 's/ //g'
or
date -u +%W$(uname)|sha256sum|sed 's/\s//g'
Do work correctly for bash-4.1_p9.
Offline
date -u +%W$(uname)|sha256sum|sed 's/\W//g'
Does not work correctly for bash on my Linux box, bash-4.1_p9, it eats the "-" at the end of the line.
bash 4.2.037-1 from [core] doesn't display the '-' either.
Offline
Moving to Forum & Wiki discussion
Offline
bill@Jeremiah ~> date -u +%W$(uname)|sha256sum|sed 's/\W//g'
3740f4173d74c1e7bce9812f188120558174869d5183efb5fd3537f2d5fa80c9
bill@Jeremiah ~> pacman -Ss bash
core/bash 4.2.037-1 (base) [installed]
Works fine here and you would assume that on install of an Arch system it would also work fine for those. Is it convenient? Not really, but: it is two-fold useful. 1) It really, really cuts down on spammer accounts. And 2) Arch is a distribution for competent Linux users - you have to be, at least minimally, to do that command.
Offline
headkase, you mean it failed for you as well. Your output does not have the trailing dash.
I am assuming (based on the OP) that the dash is necessary to pass forum registration. So given a current and up to date arch system and a fully competant user, registration would fail.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Ok, it failed - just tried to register with the output. However, the two points for its rationale still stand.
Offline
Maybe I'm confused, but it seems the '\W' in the sed statement is supposed to filter out the spaces and the dash.
Edit: My point being the problem is with the forum code, not the shell.
Last edited by alphaniner (2012-10-19 19:28:08)
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
headkase, you mean it failed for you as well. Your output does not have the trailing dash.
I am assuming (based on the OP) that the dash is necessary to pass forum registration. So given a current and up to date arch system and a fully competant user, registration would fail.
There is nothing wrong with using a complex command to qualify users, just make sure it works for all shells. I posted 2 other forms of the command that work for my bash shell. I think the one with the simple space would work on any shell.
Offline
Somewhat related: https://bugs.archlinux.org/task/32066
Offline