Hi there,
I've been writing a package for Arbortext Editor with the goal of a
lightweight integration with a source control system (subversion).
I'm using a simple menu which binds to some ACL scripts. These scripts
speak directly to the command-line client (svn.exe) to perform tasks
such as "get me a changelog", "check-in this file", "revert this file", etc.
I've got everything working great, except for one niggling problem. I'm
interested in how other people have interacted with the shell from
within ACL. See, I need to capture the output from the svn.exe tool.
I'm currently using the backquotes method as such:
$result = `svn.exe blah blah`
So the variable $result ends up being the STDOUT as returned by svn.exe.
The only problem is that the backquotes feature actually converts all
runs of whitespace (tabs, spaces, carriage returns) to a single space.
This means the returned output, eg. from a repository query, looks
pretty awful when I pop it up in a dialogue box.
Any input much appreciated 🙂
Cheers,
Gareth