lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> Subject, basically. It's similar to the behavior found in Python, I'm just curious if there's an existing patch for it. Otherwise, are there resources that can help me make one?

Do you mean this?

     x = string.gsub("home = $HOME, user = $USER", "%$(%w+)", os.getenv)
     --> x="home = /home/roberto, user = roberto"