Re: Problem Registering for Forum -> date -u +%W$(uname)...

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.

Re: Problem Registering for Forum -> date -u +%W$(uname)...

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

Re: Problem Registering for Forum -> date -u +%W$(uname)...

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.