Tíquete #27562

filedelete コマンドは、削除できなくても result = 0 になる。

: 2012-02-16 13:38 Última Atualização: 2012-02-17 22:45

Relator:
Dono:
(del#1144)
Tipo:
Estado:
Fechado
Componente:
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
Nenhum
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

Tera Term 4.72 (SVN# 4766) を Windows XP Professional Version 2002 SP 3 で使用しています。 filedelete コマンドは、存在しないファイルを指定しても、result = 0 を返します。 例えば、次のマクロを 'filedelete.ttl' として実行してみて下さい。 (ファイル名は自分自身を concat しているため)

file = 'filedelete1.txt'
fileconcat file 'filedelete.ttl'
if result == 0 then
  messagebox 'concat' 'fileconcat'
else
  messagebox 'can not concat' 'fileconcat'
endif

pause 1

getdir macro_dir
makepath fullpath_file macro_dir file

filesearch file
if result == 1 then
  messagebox result 'search result'
  messagebox 'exists' 'search'
elseif result == 0 then
  messagebox result 'search result'
  messagebox 'does not exist' 'search'
endif

pause 1

filesearch fullpath_file
if result == 1 then
  messagebox result 'search fullpath result'
  messagebox 'exists' 'search fullpath'
elseif result == 0 then
  messagebox result 'search fullpath result'
  messagebox 'dose not exist' 'search fullpath'
endif

pause 1

filedelete file
if result == 0 then
  messagebox result 'filedelete file result'
  messagebox 'deleted' 'filedelete file'
else
  messagebox result 'filedelete file result'
  messagebox 'can not deleted' 'filedelete file'
endif

pause 1

filedelete fullpath_file
if result == 0 then
  messagebox result 'filedelete fullpath_file result'
  messagebox 'deleted' 'filedelete fullpath_file'
else
  messagebox result 'filedelete fullpath_file result'
  messagebox 'can not deleted' 'filedelete fullpath_file'
endif

Ticket History (3/3 Histories)

2012-02-16 13:38 Updated by: keishim
  • New Ticket "filedelete コマンドは、削除できなくても result = 0 になる。" created
2012-02-16 14:17 Updated by: (del#1144)
2012-02-17 22:45 Updated by: (del#1144)
  • Resolução Update from Nenhum to Fixed
  • Estado Update from Aberto to Fechado
  • Ticket Close date is changed to 2012-02-17 22:45
Comentário

r4841 で対応しました。次のリリースに反映されます。

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login