[A related problem to the original/main post below is evident at the
following link which reoommends, "Scripts can be installed anywhere in your
system. A convenient place for scripts is the misc subdirectory of addons,
i.e. jpath '~addons/misc'."

http://www.jsoftware.com/jwiki/Scripts?highlight=%28misc%29

As can be seen below, there is no longer such a subdirectory.

This comment is being added AFTER the post below was constructed, btw.
]


I may be returning to an old thread such as this one initated by Ian Clark
regarding use of scripts from misc.

http://www.jsoftware.com/pipermail/programming/2012-September/029291.html

​In any case, first note below the structure of the directory
~addons/system/general/ (there is only one file in the directory and it is
the subdirectory `misc`)​. That seems curious in itself, but workable.

server:~ brian$ cd /Users/brian/j64-803/addons/general
server:general brian$ ls -l
total 0
drwxr-xr-x  21 brian  staff  714 Feb 17 07:59 misc
server:general brian$

​In the script ​j64-803/system/util/general/misc only 6 scripts are given
short names as shown in the following grep.

server:misc brian$ cd /Users/brian/j64-803/system/util
server:util brian$ grep "general/misc" *
scripts.ijs:guid       ~addons/general/misc/guid.ijs
scripts.ijs:numeric    ~addons/general/misc/numeric.ijs
scripts.ijs:pack       ~addons/general/misc/pack.ijs
scripts.ijs:parts      ~addons/general/misc/parts.ijs
scripts.ijs:trace      ~addons/general/misc/trace.ijs
scripts.ijs:validate   ~addons/general/misc/validate.ijs


​Otoh, the following grep shows there are ​19 scripts in the general/misc
directory.


server:util brian$ cd /Users/brian/j64-803/addons/general/misc
server:misc brian$ ls -l
total 216
-rw-r--r--  1 brian  staff  9170 Jul 14  2012 bigfiles.ijs
-rw-r--r--  1 brian  staff  7705 Jul 14  2012 clippaste.ijs
-rw-r--r--  1 brian  staff   272 Jul 14  2012 evolute.ijs
-rw-r--r--  1 brian  staff  3866 Jul 14  2012 fndef.ijs
-rw-r--r--  1 brian  staff  4307 Jul 14  2012 fndisplay.ijs
-rw-r--r--  1 brian  staff  1805 Jul 14  2012 font.ijs
-rw-r--r--  1 brian  staff  7539 Jul 14  2012 format.ijs
-rw-r--r--  1 brian  staff  1416 Jul 14  2012 guid.ijs
-rw-r--r--  1 brian  staff   985 Jul 14  2012 inverted.ijs
-rw-r--r--  1 brian  staff  4444 May 12  2014 jdll.ijs
-rw-r--r--  1 brian  staff   930 Dec 21 04:38 manifest.ijs
-rw-r--r--  1 brian  staff  4417 Jul 14  2012 numeric.ijs
-rw-r--r--  1 brian  staff  2775 Jul 14  2012 pack.ijs
-rw-r--r--  1 brian  staff  2400 Jul 14  2012 parts.ijs
-rw-r--r--  1 brian  staff   640 Dec 21 04:37 prompt.ijs
-rw-r--r--  1 brian  staff   889 Jul 14  2012 test_bigfiles.ijs
-rw-r--r--  1 brian  staff  1166 Jul 14  2012 test_clippaste.ijs
-rw-r--r--  1 brian  staff  5676 Jul 14  2012 trace.ijs
-rw-r--r--  1 brian  staff  1817 Jul 14  2012 validate.ijs

​The following grep is meant to show that the remaining 13 unlisted
scripts​ do not have conflicting names or usages in the script
​j64-803/system/util/general/misc
.

So I wonder if it would be valuable to add the missing 13 scripts to script
​j64-803/system/util/general/misc ?

For background, this came up for me while looking for fun things to do with
some young students by perusing existing scripts in the jwiki Essays and
Scripts. The prompt.ijs script was required by both Raul's and Oleg's
scripts for Animals and was sought using `require misc`, which fails. The
change I am suggesting would still not fix those Animals scripts, but would
at least permit the fix to be simply replacing `require misc` with `require
prompt`.



server:misc brian$ cd /Users/brian/j64-803/system/util
server:util brian$ grep bigfiles *
server:util brian$ grep clippaste *
server:util brian$ grep evolute *
server:util brian$ grep fndef *
server:util brian$ grep fndisplay *
server:util brian$ grep font *
server:util brian$ grep inverted *
server:util brian$ grep jdll *
server:util brian$ grep manifest *
pacman.ijs:if. 0>:fsize jpath'~addons/',y,'/manifest.ijs' do.
pacman.ijs:0!:0 ::] <jpath '~addons/',y,'/manifest.ijs'
pacman.ijs:  mft=. freads (>d),'manifest.ijs'
pacman.ijs:  case. 'history';'manifest' do.
pacman.ijs:    msg=. msg,'  history, install, manifest, remove, reinstall,
show, search,',LF
server:util brian$ grep test_bigfiles *
server:util brian$ grep test_clippaste *
server:util brian$


-- 
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to