RhostMUSH / trunk

RhostMUSH 4.0: This is the official main repository of RhostMUSH. Visit us at rhostdev.mushpark.com 4201
23 stars 21 forks source link

MUSHQN_ not being populated #146

Closed CuAnnan closed 3 years ago

CuAnnan commented 3 years ago

&cmd.feeding.setPool zobj=$+feed/pool *:[setq(user, %#)];[setq(pool, %0)];[setq(res, [execscript([u(con.domain.path)], setFeedingPool, [objid(%#)]|[%0])])];@sudo %l=@pemit [r(user)]=[r(res)]

MUSHQ_U and MUSHQN both show up but not the MUSHQN or MUSHN_ variables.

mrsenile commented 3 years ago

Please verify that the register you are using is alphanumerical and does not contain special characters or spaces.

It will still 'work for normal numerical register, but because of how the backend system works in passing the values as shell variables, you are limited in what characters shell variables see as valid, which in this case is alphanumerical (without white spaces).

Please let us know if you used l;pahnumerical or special characters and/or spaces.

CuAnnan commented 3 years ago

It is alphanumerical, does not contain characters or spaces. It's the word user. But no words are being populated.

CuAnnan commented 3 years ago

Ubuntu 20.04 OS

mrsenile commented 3 years ago

$ cat setq.sh

!/bin/bash

echo "MUSH Stuff" echo "MUSHQ_0: ${MUSHQ_0}" echo "MUSHQN_0: ${MUSHQN_0}" echo "MUSHN_USER: ${MUSHN_USER}"

think [setq(0,how now brown cow,user)][execscript(setq.sh)]

MUSH Stuff MUSHQ_0: how now brown cow MUSHQN_0: user MUSHN_USER: how now brown cow

Works fine to me. Make sure the variables are all upper case.

stevensmedia commented 3 years ago

Weird it is now working for me now, though it wasn't before.

CuAnnan commented 3 years ago

I am not using the syntax setq(num, val, tex>). I am using the syntax setq(text, val) Does only the former work?

CuAnnan commented 3 years ago

And, again. No musqn variable is present.

CuAnnan commented 3 years ago

https://raw.githubusercontent.com/CuAnnan/domain/main/output.txt

Both the command on the object in question and the raw output