I use TCC 15.01.56 32 bit.
I have set the filename completion with this line: "TYPE:!EXE *;LIST:!EXE *;".
In this way I do not risk to type an executable file.
But I have found that this setting changes the behavior of filename completion.
For example, I create three files and change their attributes.
[C:\work\8888]> 1a.txt
[C:\work\8888]> 1h.txt
[C:\work\8888]> 1s.txt
[C:\work\8888]attrib 1h.txt -a +h
___A___________ -> _H_____________ C:\work\8888\1h.txt
[C:\work\8888]attrib 1s.txt -a +s
___A___________ -> __S____________ C:\work\8888\1s.txt
[C:\work\8888]attrib
___A___________ C:\work\8888\1a.txt
_H_____________ C:\work\8888\1h.txt
__S____________ C:\work\8888\1s.txt
Now, if I type "type 1" and then press the tab key two times it shows 1a.txt and then beeps.
The same for "list 1".
Instead, if I type "copy 1" when I press tab three times, it shows all filenames.
So, it seems that the syntax "command !EXE *;" changes the behavior of filename completion for that command and prevents it to find hidden and/or system files.
Regards
Rodolfo Giovanninetti
I have set the filename completion with this line: "TYPE:!EXE *;LIST:!EXE *;".
In this way I do not risk to type an executable file.
But I have found that this setting changes the behavior of filename completion.
For example, I create three files and change their attributes.
[C:\work\8888]> 1a.txt
[C:\work\8888]> 1h.txt
[C:\work\8888]> 1s.txt
[C:\work\8888]attrib 1h.txt -a +h
___A___________ -> _H_____________ C:\work\8888\1h.txt
[C:\work\8888]attrib 1s.txt -a +s
___A___________ -> __S____________ C:\work\8888\1s.txt
[C:\work\8888]attrib
___A___________ C:\work\8888\1a.txt
_H_____________ C:\work\8888\1h.txt
__S____________ C:\work\8888\1s.txt
Now, if I type "type 1" and then press the tab key two times it shows 1a.txt and then beeps.
The same for "list 1".
Instead, if I type "copy 1" when I press tab three times, it shows all filenames.
So, it seems that the syntax "command !EXE *;" changes the behavior of filename completion for that command and prevents it to find hidden and/or system files.
Regards
Rodolfo Giovanninetti