.
D 2009-10-27T06:02:17
J assignee vincentdarley
J cmimetype text/plain
J comment When\susing\s"file\sjoin"\son\sa\sstring\sthat\shappens\sto\sinclude\sa\svirtual\svolume\sname\sas\sa\ssubstring,\sthe\sstring\sis\simproperly\ssplit\sat\sthe\ssubstring\sboundary,\sand\sthe\scommand\sacts\sas\sthough\sthere\swere\sa\sspace\sat\sthe\ssubstring\sboundary.\n\nFor\sconvenience\sI\shave\sattached\sa\sfile\s(templatevfs.tcl)\sto\smake\sit\seasy\sto\screate\sa\svirtual\svolume\sby\smounting\sa\svirtual\sfilesystem,\sbut\sthe\sissue\sshould\snot\sbe\sconstrued\sas\slimited\sto\sthis\svfs.\n\nExample:\n\n%\scd\n%\sfile\smkdir\stestvfs\n%\ssource\stemplatevfs.tcl\n%\svfs::template::mount\s-volume\stestvfs\stestvfs\ntestvfs\n%file\svolumes\s;\s#\snote\stestvfs\sis\snow\sa\svirtual\svolume\ntestvfs\s/\n%\sfile\sjoin\stestvfstest\s;\s#\sexpect\sresponse:\stestvfstest\ntestvfs/test\n\nNote\sin\sthe\slast\sstatement\s"testvfstest"\sis\san\sarbitrary\sstring\swhich\sjust\shappens\sto\sstart\swith\s"testvfs".\s\sThe\scommand\s"file\sjoin\stestvfstest"\sshould\ssimply\secho\sthe\sargument\sstring.\s\sBut\sthe\scommand\sacts\sas\sif\sthere\swere\sa\sspace\sbetween\s"testvfs"\sand\s"test".\n\nAlso\snote:\n\n%\sfile\sjoin\sfoo\stestvfstest\ntestvfs/test\n\nDiscarding\s"foo"\swould\sbe\sexpected\sif\sthere\swere\sa\sspace\sbetween\s"testvfs"\sand\s"test",\ssince\sthe\scommand\sdiscards\sarguments\sthat\scome\sbefore\sa\svolume\sname.\s\sBut\sthe\sresponse\sshould\sbe\s"foo/testvfstest".\s\sThis\sillustrates\sthat\s"testvfs"\sis\sbeing\streated\sas\sa\svolume\sname\srather\sthan\sas\sa\ssubstring.\s\n\nTested\son\sUbuntu\sHardy.
J foundin obsolete:\s8.5.5
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter blacksqr
J subsystem 37.\sFile\sSystem
J title "file\sjoin"\simproperly\sinjects\sspace
J type Bug
K 2886914fffffffffffffffffffffffffffffffff
U blacksqr
Z 67aac692a8db60818853a8d512ea10a4