<i>The info command doesn't care of the working directory if changed by the program</i>.
by
.
D 2023-06-20T16:02:22.906
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment This\sis\sa\sbug\sin\sthe\sinfo\scommand.\r\nThe\sinfo\scommand\sdoesn't\scare\sof\sthe\sworking\sdirectory\swhen\schanged\sby\sthe\sprogram\susing\sa\ssimple\scd.\r\nThis\sgive\sa\sbug\swhen\sused\sin\sconjonction\swith\sfile\snormalize.\r\n\r\nExemple\swith\sthis\scode,\srun\sfrom\severywhere\susing\srelative\sfile\spath\sfor\slaunching\sthe\sscript\stclsh\sor\ssource\sit,\sit\sshould\salways\sfind\shimself\swhich\sdoesn't\swork\s:\r\n\r\n\s\s\s\scd\s[file\sdirname\s[file\snormalize\s[info\sscript]]]\r\n\s\s\s\sset\smyselfPath\s[file\snormalize\s[info\sscript]]\r\n\s\s\s\sputs\s$myselfPath\r\n\s\s\s\sif\s{[file\sexist\s$myselfPath]}\s{\r\n\s\s\s\s\s\sputs\s"I\sfound\smyself"\r\n\s\s\s\s}\selse\s{\r\n\s\s\s\s\s\sputs\s"I\scan't\sfind\sthe\sfile\s$myselfPath\swhich\sshould\sbe\smyself"\r\n\s\s\s\s\s\sexit\s1\r\n\s\s\s\s}\r\n\r\nA\ssimple\sway\sto\savoid\sthat\skind\sof\sbugs\swill\sbe\sto\shave\s[info\sscript]\salways\sreturn\sabsolute\spath,\seven\sif\ssource\sor\sTcl_EvalFile\slaunched\swith\sa\srelative\sfilename\sas\sargument.
J foundin 8.6.13
J is_private 0
J login geballin
J priority 5\sMedium
J private_contact 6dcd7ca00fdbf25f6645f6a67a11668e7b5ef099
J resolution None
J severity Minor
J status Open
J submitter geballin
J subsystem 17.\sCommands\sI-L
J title The\sinfo\scommand\sdoesn't\scare\sof\sthe\sworking\sdirectory\sif\schanged\sby\sthe\sprogram
J type Bug
K 61f4c677709c542a83abe089b3822e165c45cd09
U geballin
Z d6dc5b93ae4f14b1dcace277bac89d3f