Date: Sat, 11 Dec 1993 23:23 EST From: "Wonkoo Kim, EE, U. of Pittsburgh" Subject: A trick for symbolic link To: djgpp AT sun DOT soe DOT clarkson DOT EDU Hi. THIS IS NOT A BUG REPORT; A SUGGESTION The new features of go32 and its stubedit are very very nice! I really like the tricks of them that make a fake symbolic link. Maybe I should stay calm since those features are already great. I'd like to suggest one more feature to go32 and stubedit, so that I can rename the executables that are sensitive to their file names. More specifically, for example, if I want to rename uncompress.exe and compress.exe to djuncomress.exe and djcompress.exe (suppose filenames are truncated to 8.3), "stubedit djuncompress.exe runfile=djcompress" would not work because the argv[0] to the actual program will be "djuncompress" instead of "uncompress". We can fake one more step by adding a new field to go32 stub section, which will be the actual argv[0] to be passed to the program that will be started by go32. Say the field name is alias. Then, after renaming to dj*.exe, I would issue: "stubedit djuncompress.exe runfile=djcompress alias=uncompress". When djuncompress.exe is started, go32 starts the djcompress.exe and passes the alias "uncompress" instead of djcompress.exe for command argument[0]. (Blank alias will pass runfile, and blank runfile pass its filename to program.) This way will eliminate filename restriction (like in uncompress.exe or pbmplus utilites) and give better symbolic links. I didn't digest go32 source whether the modification will be quick or not. This feature may not be so important that we shouldn't touch go32 if it needs some significant changes to go32. Thanks to everybody who contributed to djgpp! Regards, Wonkoo