eisai on Nostr: menherahair > I pull $uservars from the _sequence() scope The array itself, yes, but ...
menherahair (npub1n78…87ev) > I pull $uservars from the _sequence() scope
The array itself, yes, but the item named “sequence” seems nowhere to be defined.
> because code for copying bash arrays into local scope is quite noisy
Usually you don’t have to do this, unless you really need a separate copy.
> $env_* variables are actual globals, set in _globals().
I have a suspicion, that they’re in fact not. Try inserting
declare -p env_default_sequence
right after the call to _globals()
Published at
2024-03-24 13:04:11Event JSON
{
"id": "6306103b1e35c4c5ee4d5735874c481036487b06e2529249317bbcfd645e2795",
"pubkey": "8cd20c7236dac2fcfd775e1a189f54e7183dc65f22df1c6445cfe0dfe7ad6df5",
"created_at": 1711285451,
"kind": 1,
"tags": [
[
"p",
"9f8f12d3dbef548f0c2d23696999eeba508ffdd08c71f01408ab7798bbbc30d8",
"wss://relay.mostr.pub"
],
[
"e",
"bfc209aaf7042f473927823f71da2ef734fb39b17a301ca34677068c6449ca80",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://eientei.org/objects/dffdd4f8-38f4-4cc1-bc7a-4665c41c050f",
"activitypub"
]
],
"content": "nostr:npub1n783957maa2g7rpdyd5knx0whfggllws33clq9qg4dme3wauxrvq6q87ev \u003e I pull $uservars from the _sequence() scope\nThe array itself, yes, but the item named “sequence” seems nowhere to be defined.\n\u003e because code for copying bash arrays into local scope is quite noisy\nUsually you don’t have to do this, unless you really need a separate copy.\n\u003e $env_* variables are actual globals, set in _globals(). \nI have a suspicion, that they’re in fact not. Try inserting\ndeclare -p env_default_sequence\nright after the call to _globals()",
"sig": "6411e56b89b4020f8a4aeb1da8631bbaf44aaaa1262abf5cc89bda3e3fa714a0171d2ccd59d76f5bf0695690c48a37db6f927117e0c10b2d0b80aa26609331c3"
}