At Thu, 27 Feb 2014 10:07:27 -0500, Sam Tobin-Hochstadt wrote: > On Thu, Feb 27, 2014 at 9:19 AM, Matthew Flatt <[email protected]> wrote: > > The `raco setup` and `setup-plt` programs are the same, and the program > > decides how to treat arguments based on the name used to run it. Since > > your link is not called "raco", then it uses `setup-plt` mode, which > > treats arguments as file names instead of collection names. > > Would it be reasonable to reverse the sense of this test, and only > behave like `setup-plt` if the program is called "setup-plt"?
It's more complicated than simply deciding that the opposite default makes sense. The reason that `setup-plt` and `raco setup` are the same program has to do with bootstrapping and compatibility, and that constrains he implementation. I think there must be a better way to implement the distinction, though. > > You can work around the problem by supplying `-l` before > > `mycollection`. > > > > At Thu, 27 Feb 2014 14:56:58 +0100, Tobias Hammer wrote: > >> Hi, > >> > >> if i use a softlink on linux to call raco, raco setup behaves strangely > >> different. > >> > >> Reproduce with > >> raco setup -xiIdD --no-planet --avoid-main --force mycollection > >> [compile output] > >> > >> ln -s `which raco` myraco > >> ./myraco setup -xiIdD --no-planet --avoid-main --force mycollection > >> open-input-file: cannot open input file > >> path: <<current director>>/mycollection > >> system error: No such file or directory; errno=2 > >> > >> From what i could trace, the link gets passed to racket via -N and raco > >> setup somehow uses this to check what it should do. But from that on i am > >> lost. > >> > >> I would be grateful for any hints if i am trying something evil or for > >> possible workarounds. > >> > >> Tobias > >> > >> > >> > >> -- > >> Tobias Hammer > >> DLR / Robotics and Mechatronics Center (RMC) > >> Muenchner Str. 20, D-82234 Wessling > >> Tel.: 08153/28-1487 > >> Mail: [email protected] > >> ____________________ > >> Racket Users list: > >> http://lists.racket-lang.org/users > > ____________________ > > Racket Users list: > > http://lists.racket-lang.org/users > ____________________ > Racket Users list: > http://lists.racket-lang.org/users ____________________ Racket Users list: http://lists.racket-lang.org/users

