Menu

#373 suddenly additional Space in dir Name

freedos13
open
nobody
dir (1)
5
2023-05-04
2023-04-03
Anonymous
No

after install all dirs are OK. When quitting PCTOOLS into a directory that directory gets a new space in the name and is not recognized by other applications. In my case by Qbasic.
Cheers Axel

Discussion

  • fritz.mueller

    fritz.mueller - 2023-04-09

    Hi,
    sorry for late response. Your description is not really understandable to me as I do not know the program. Maybe this is a reason why you got no response from others.

    When quitting PCTOOLS into a directory that directory gets a new space in the name and is not recognized by other applications. In my case by Qbasic.

    quitting pctools into a directory. What do you mean with this? Saving results or log files or the whole program or something else?

    that directoy gets a new space in the name in the name and is not recognized by other applications.

    is it a space bar, e.g. ex ample instead of example? could it be a problem with codepages, sometimes special characters are not shown with other codepages? is the directory overlong?

     

    Last edit: fritz.mueller 2023-04-09
  • Jim Hall

    Jim Hall - 2023-05-04

    Axel also emailed me to follow up. Copying my reply to the bug for addl info:

    While DOS does allow spaces in filenames, any trailing space would be stripped (spaces are otherwise allowed at the start or in the middle of a filename or directory name). For example:

    C:\TEMP>mkdir "new dir"
    C:\TEMP>dir
     Volume in drive C is FREEDOS2023
     Volume Serial Number is 115D-1BEC
    
     Directory of C:\TEMP
    
    .                    <DIR>  05-01-2023  8:09p
    ..                   <DIR>  05-01-2023  8:09p
    NEW DIR              <DIR>  05-01-2023  8:10p
             0 file(s)              0 bytes
             3 dir(s)     501,456,896 bytes free
    

    and:

    C:\TEMP>mkdir " space"
    C:\TEMP>dir
     Volume in drive C is FREEDOS2023
     Volume Serial Number is 115D-1BEC
    
     Directory of C:\TEMP
    
     SPACE               <DIR>  05-01-2023  8:10p
    .                    <DIR>  05-01-2023  8:09p
    ..                   <DIR>  05-01-2023  8:09p
    NEW DIR              <DIR>  05-01-2023  8:10p
             0 file(s)              0 bytes
             4 dir(s)     501,448,704 bytes free
    

    but: (after removing the previous two dirs)

    C:\TEMP>mkdir "dir "
    C:\TEMP>dir
     Volume in drive C is FREEDOS2023
     Volume Serial Number is 115D-1BEC
    
     Directory of C:\TEMP
    
    .                    <DIR>  05-01-2023  8:09p
    ..                   <DIR>  05-01-2023  8:09p
    DIR                  <DIR>  05-01-2023  8:12p
             0 file(s)              0 bytes
             3 dir(s)     501,456,896 bytes free
    C:\TEMP>DIR
     Volume in drive C is FREEDOS2023
     Volume Serial Number is 115D-1BEC
    
     Directory of C:\TEMP
    
    .                    <DIR>  05-01-2023  8:09p
    ..                   <DIR>  05-01-2023  8:09p
    DIR                  <DIR>  05-01-2023  8:12p
             0 file(s)              0 bytes
             3 dir(s)     501,456,896 bytes free
    C:\TEMP>RMDIR DIR
    C:\TEMP>DIR
     Volume in drive C is FREEDOS2023
     Volume Serial Number is 115D-1BEC
    
     Directory of C:\TEMP
    
    .                    <DIR>  05-01-2023  8:09p
    ..                   <DIR>  05-01-2023  8:09p
             0 file(s)              0 bytes
             2 dir(s)     501,465,088 bytes free
    

    I'm confused why the software would add a space to the end of a directory name. Also, I don't know why the new directory would actually encode the space at the end of the name, since that's not normal DOS behavior. I think you're correct that it somehow added an invisible character to the end of the directory. Try saving the output of DIR to a file, and examining the file with a hex viewer.

    You mentioned this was PCTOOLS (Central Point). What specific version of PCTOOLS is this? I can try some additional debugging to observe the behavior.

     

Log in to post a comment.

MongoDB Logo MongoDB