Ticket #44044

Created links are ambiguous

Open Date: 2022-03-07 03:45 Last Update: 2022-03-08 00:58

Reporter:
Owner:
Type:
Status:
Open [Owner assigned]
Component:
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

I consider this a bug, although it's also a kind of feature request.

Imagine the following:

  1. ln add fed c:\progs\fed -> creates the link
  2. run fed -> starts c:\progs\fed\fed.exe
  3. copy c:\progs\map\map.exe c:\progs\fed\fed.com
  4. run fed again -> starts c:\progs\fed\fed.com (!)

It's not uncommon to have progname.com and progname.exe in one package.

I think, it would be better to change the links to also include the extension .COM or .EXE.

This would also allow links like: NC.LNK -> C:\VC\VC.COM

Ticket History (3/4 Histories)

2022-03-07 03:45 Updated by: bttr
  • New Ticket "Created links are ambiguous" created
2022-03-07 23:13 Updated by: mateuszviste
Comment

I don't understand the problem here. If you have both a COM and an EXE, how is the system supposed to know which one you want to run? It's up to you to specify it. If you don't, then COM will be picked, because of legacy priorities. adding a COM/EXE information to the link itself does not have any value.

the SvarCOM link is more a "link to directory" rather than "link to file". Ie. it says "for such command look into this directory to find a match". Perhaps the documentation could be clarified, if it's not obvious enough.

2022-03-07 23:27 Updated by: mateuszviste
Comment

I think I understand the scenario: you have a package that have both files:

C:\INFOZIP\ZIP.COM

C:\INFOZIP\ZIP.EXE

...and you would like that the global "ZIP" command execute ZIP.EXE instead of ZIP.COM.

That is definitely a feature ("link to file"). Another question would be whether this is actually a practical need?

2022-03-08 00:58 Updated by: bttr
Comment

Reply To mateuszviste

I think I understand the scenario: you have a package that have both files: C:\INFOZIP\ZIP.COM C:\INFOZIP\ZIP.EXE ...and you would like that the global "ZIP" command execute ZIP.EXE instead of ZIP.COM.

That's correct.

That is definitely a feature ("link to file"). Another question would be whether this is actually a practical need?

What is the practical need of having links at all, when we already have aliases or macros in DOSKEY or TODDY? ;-) That came to my mind yesterday evening...

(Links take disk space, 1 cluster per link. Aliases/macros take precious RAM, I know.)

(Edited, 2022-03-08 20:25 Updated by: bttr)

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login