remember now:
quotes can be use IN a terminal
with the file name  my better-file-l

ls  "my better-file-l"

2010/12/23 jerome fontaine <[email protected]>

> no need to try, only the first can work
> - + blanc
> tab { } * >< | make the mistake
>
>
> 2010/12/23 bill lam <[email protected]>
>
>> From my understanding after reading Eric's post, the root cause is not
>> file
>> name or file system, or where the j executable resides. It is J does not
>> ignore the first line if it begins with #!  So that it is not hyphen
>> alone.
>> try these inside a J session.
>>
>> ". '#!/bin/j7'
>> ". '#!/bin/j-7'
>> ". '#!/bin/j+7'
>> ". '#!/bin/j-a7'
>> ". '#!/bin/j 7'
>> ". '#!/bin/j a'
>> ". '#! -3'
>>
>>
>> Чтв, 23 Дек 2010, jerome fontaine писал(а):
>> > no it was  linux lines and I make it run on linux
>> > i don't have windows, sorry
>> >
>> > line is   ~/testhb
>> >
>> > and the link which is in  ~/
>> >    refer to a target which is in ~/j32-701/bin/
>> >
>> > bash processor doesn't "view" the hyphen
>> >
>> > it coulb be ~/aa/bb/cc/dd/ee/lcaller
>> > but not  /home/jerome-fontaine/caller
>> > with this user_home a lot of problems
>> >
>> > 2010/12/23 bill lam <[email protected]>
>> >
>> > > Did you mean you run j script under window by using the line
>> > > #!C:\Users\björn\j701-user\jconsole.exe
>> > >
>> > > does window allow running shell script using shebang at all?
>> > > or you refer problems in another context?
>> > >
>> > > Срд, 22 Дек 2010, Björn Helgason писал(а):
>> > > > I am having a similar problems with some of my computers and J
>> setting of
>> > > > the users folder under my user name even if * do not want them there
>> > > because
>> > > > of the ö in my name.*
>> > > > *
>> > > > *
>> > > > *C:\Users\björn\j701-user*
>> > > > *
>> > > > *
>> > > > *This causes problems for me and I have reported that several times
>> > > before
>> > > > under J6.*
>> > > > *
>> > > > *
>> > > > *C:\Users\björn\j602-user
>> > > > *
>> > > > 2010/12/22 Eric Iverson <[email protected]>
>> > > >
>> > > > > I have looked into this problem and found it amusing.
>> > > > >
>> > > > > Note the 2 sentences:
>> > > > >   #!/a_3/b
>> > > > >   #!/a-3/b
>> > > > >
>> > > > > The 1st runs without error and has no side effects. The 2nd gets a
>> > > domain
>> > > > > error.
>> > > > >
>> > > > > The unix #! mechanism runs the binary after the #! with a 1st arg
>> of
>> > > the
>> > > > > name of the file. So jconsole runs and with normal J rules loads
>> the
>> > > file.
>> > > > > There is no special treatment of a 1st line starting with #! in
>> the
>> > > load
>> > > > > verb or in 0!:0. So in all uses of #! files that first line gets
>> run
>> > > like
>> > > > > any other line. In most cases it runs without side effects and
>> without
>> > > > > error
>> > > > > and you get what you expect. But if that #! line gets an error you
>> get
>> > > > > stopped. There are lots of other legal file names that would cause
>> > > similar
>> > > > > errors. You could even have a line that had a side effect and
>> continued
>> > > > > execution.
>> > > > >
>> > > > > Short answer is that this won't be fixed for this release.
>> > > > >
>> > > > > A change of j64-701 to j64_701 would probably fix most real world
>> cases
>> > > but
>> > > > > I am not willing to make that change for this release. Partly
>> laziness
>> > > and
>> > > > > partly because it isn't a complete solution. If you had a - in
>> your
>> > > user
>> > > > > name you'd have the same problem. And I am not willing to add a
>> test to
>> > > > > ignore a 1st line starting with #! to either 0!:0 or load. This
>> bug has
>> > > > > been
>> > > > > there for a long time.
>> > > > >
>> > > > > Workarounds are not difficult once the problem recognized. A #!
>> J64
>> > > unix
>> > > > > user can manually change the j64-701 to j64_701. Or perhaps better
>> (but
>> > > I
>> > > > > don't have details at hand) create a link file that avoids nasty
>> > > > > characters.
>> > > > >
>> > > > > On Mon, Dec 20, 2010 at 8:47 PM, Tikkanz <[email protected]>
>> wrote:
>> > > > >
>> > > > > > This problem has been recorded before, but I don't think
>> properly
>> > > > > resolved.
>> > > > > >
>> > > > > > ris...@ric-linux:~/proj/getphenotypes$ cat testhb
>> > > > > > #!/home/rishe0/j64-701/bin/jconsole
>> > > > > > 1!:2&4 'Hello world!', 10 { a.
>> > > > > > NB. exit 0
>> > > > > >
>> > > > > > ris...@ric-linux:~/proj/getphenotypes$ ./testhb
>> > > > > > |domain error: script
>> > > > > > |   #!/home/rishe0/j64-    701/bin/jconsole
>> > > > > > |[-0] /home/rishe0/proj/getphenotypes/./testhb
>> > > > > >
>> > > ----------------------------------------------------------------------
>> > > > > > For information about J forums see
>> > > http://www.jsoftware.com/forums.htm
>> > > > > >
>> > > > >
>> ----------------------------------------------------------------------
>> > > > > For information about J forums see
>> http://www.jsoftware.com/forums.htm
>> > > > >
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > Björn Helgason, Verkfræðingur
>> > > > Fornustekkum II
>> > > > 781 Hornafirði,
>> > > > t-póst: [email protected]
>> > > > gsm: +3546985532
>> > > > sími: +3544781286
>> > > > http://groups.google.com/group/J-Programming
>> > > >
>> > > >
>> > > > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari
>> einfaldleikans
>> > > >
>> > > > góður kennari getur stigið á tær án þess að glansinn fari af skónum
>> > > >           /|_      .-----------------------------------.
>> > > >          ,'  .\  /  | Með léttri lund verður        |
>> > > >      ,--'    _,'   | Dagurinn í dag                     |
>> > > >     /       /       | Enn betri en gærdagurinn  |
>> > > >    (   -.  |        `-----------------------------------'
>> > > >    |     ) |         (\_ _/)
>> > > >   (`-.  '--.)       (='.'=)   ♖♘♗♕♔♙
>> > > >    `. )----'        (")_(") ☃☠
>> > > >
>> ----------------------------------------------------------------------
>> > > > For information about J forums see
>> http://www.jsoftware.com/forums.htm
>> > >
>> > > --
>> > > regards,
>> > > ====================================================
>> > > GPG key 1024D/4434BAB3 2008-08-24
>> > > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>> > > ----------------------------------------------------------------------
>> > > For information about J forums see
>> http://www.jsoftware.com/forums.htm
>> > >
>> > ----------------------------------------------------------------------
>> > For information about J forums see http://www.jsoftware.com/forums.htm
>>
>> --
>> regards,
>> ====================================================
>> GPG key 1024D/4434BAB3 2008-08-24
>> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to