On Wed, Jun 22, 2016 at 7:27 PM, tim Rowledge tim@rowledge.org wrote:
On 22-06-2016, at 1:27 PM, Yoshiki Ohshima Yoshiki.Ohshima@acm.org wrote: {snip}
Ah, perhaps it is fine not to have to detect LD_LIBRARY_PATH, as this is going to run on only one architecture (for a while). But defining LD_LIBRARY_PATH is needed IIUC.
We’re already way out of my zone… {snip}
b) after copying my latest 3758 vm to /usr/lib/squeak the VM=`echo /usr….`` line results in listing two vm directories, which seems plain wrong. It certainly looks like it breaks the later ldd related code. Whatever it is that that is supposed to do…
c) In fact it appears that the `sort -r` produces exactly the same output as `sort`, so that would appear to be a problem? And then the `head` returns both paths too. Sigh. So the way of finding the latest vm available is just not working
Hmm, that is weird. The idea is that when there are multiple VMs, the one with the biggest number will be chosen by "sort -r | head -1”
So far as I can see it can’t work because the ‘echo’ gives us a single line as an answer and my best guess (since man pages are so very carefully written to present a wall of text that makes no sense unless you already know the answer) is that the ‘sort’ expects some cr or nl in there. Thus we (probably) just get the one line and ‘head’ does nothing to help.
You're so right. It should be 'ls' instead of 'echo'.