Raul Miller <[email protected]> wrote: > Actually, a better option here (better than #!/bin/bash) would be to > leave the shebang line as #!/bin/sh and to instead remove the > dependency on bash. > > Instead change line 29 (or 30, if you have taken my advice and > implemented an initial cd to the directory containing install-usr.sh) > to read: > > [ j903 = "$(basename "$(pwd)")" ] || { echo directory not j903; exit 1 } > > Optionally you could include some quotes which were originally on that > line, but they are unnecessary here. > > FYI,
In fact, the rabbit hole is much deeper: https://github.com/jsoftware/jsource/pull/12. That PR is getting completely re-worked, so it no loger points to the original commits, but you can peruse them here, in order: 1. https://github.com/jsoftware/jsource/commit/cb4d852788eaadd8066e228ba59c89fcca07eb2e 2. https://github.com/jsoftware/jsource/commit/d70828d1bc4c9bdf421330ba361a6c7cb3fce24c 3. https://github.com/jsoftware/jsource/commit/5f97a80ffd7fb3205bf9e936b069a377e196bce1 4. https://github.com/jsoftware/jsource/commit/9a86d9b068287c6afe54ae14f4c60cf81bcebfe2 5. https://github.com/jsoftware/jsource/commit/8742705b5868b7a135474f4df8274c69b394b64d 6. https://github.com/jsoftware/jsource/commit/6d1ad38ba340ada53c73f04806387287314312f2 7. https://github.com/jsoftware/jsource/commit/083158c3fa71d07bc38ec0164deb940a965d14e8 8. https://github.com/jsoftware/jsource/commit/de4755c5feab85623d1f3fac1a3d75d1bb0ee73d 9. https://github.com/jsoftware/jsource/commit/d1e9bc1157461249096ca115e54f9bc7698a1124 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
