mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #01195
[Bug 525164] Re: [Feature Request] Bash/Zsh-like {} use
In the command line or scripting?
A function like...
function enemy(tbl)
for i,j in pairs(tbl) do
send("enemy " .. j)
end
end
enemy({"fillin","esano","nymerya","urazial","celina"})
would do. expandable to an alias for command-line and whatever.
--
[Feature Request] Bash/Zsh-like {} use
https://bugs.launchpad.net/bugs/525164
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
Status in Mudlet the MUD client: New
Bug description:
bash/zsh allow you to run commands like so:
pacman -S {package,someotherpackage}
This would effectively cause this to happen:
pacman -S package
Once that command finishes executing, execute pacman -S someotherpackage.
I'd like to see the same kind of functionality in mudlet, so I could, for example, do something like this:
enemy {fillin,esano,nymerya,urazial,celina}
and send to the MUD:
enemy fillin
enemy esano
enemy nymerya
enemy urazial
enemy celina
I hope I made that clear enough.
References