Re: "file locked by another user" mystery



I don't know where you got the idea that edit will only process a
single file spec, but this is definitely not the case (of course you
mentioned TPU, and it is possible to write your own editor in TPU that
will only process the first filespec in a list, but I assume you are
referring to the default dec-supppied EVE editor)..

$ edit login.com,debug.ini

[From the full screen, hit the DO and type]
Command: show buffers
-and you get the list

Buffer name Lines Attributes

LOGIN.COM 152
DEBUG.INI 4

- It clearly does not ignore all but the first file specification in
the list. Perhaps you are confusing it with EDT, which does not
process file lists. But in this case, it does not pretend to..

ß edit/edt login.com,debug.ini
%DCL-W-NOLIST, list of parameter values not allowed - check use of
comma (,)
\LOGIN.COM,DEBUG\

-Both cases correctly match the documented behaviour. Perhaps you are
getting them confused?
- John

On Feb 8, 5:54 pm, chessmaster1...@xxxxxxxxxxx wrote:
On Jan 31, 10:05 pm, AEF <spamsink2...@xxxxxxxxx> wrote:> On Jan 29, 6:14 pm, Fred Bach <b...@xxxxxxxxx> wrote:

The reason the status for TYPing a non-existant file is only a warning
is simple - it does not abort TYPE.  If your TYPE command line has a
list of files and one or more of the files in the list do not exist,
TYPE will output the warnings for those files but continue and type
out any files in the list that do exist.   The %TYPE-W-SEARCHFAIL
warning is returned as the final status even if the final file in the
list was ok.

The behaviour is similar if one of the files found can not be opened
by TYPE, for example due to it being locked by another user.  You get
a %TYPE-W-OPENIN warning and then TYPE moves on to the next file.
This could happen even if you used a single file specification if it
has wildcards..

Strangely though when both of these warnings occur %TYPE-W-SEARCHFAIL
is always returned as the final status even when %TYPE-W-OPENIN occurs
for the final file accessed.

EDIT, on the other hand, will only process a single file spec (the
default EDIT verb syntax does accept a file list, but as far as I can
tell TPU ignores all but the first file specification in the list).
Since in this case you are only processing one file it makes sense
that any error accessing that file would be a fatal error.





Well, I wouldn't want to STOP on severe errors as I'd probably want to
do some cleanup. Also, it's somewhat arbitrary what constitutes a
warning vs. an error vs. a "severe error". Why should editing ADSF: be
fatal while TYPEing it only a warning?:

$ TYPE ASDF:[ASDF]ASDF
%TYPE-W-SEARCHFAIL, error searching for ASDF:[ASDF]ASDF.LIS;
-RMS-F-DEV, error in device name or inappropriate device type for
operation
$ SH SYM $SEVERITY
  $SEVERITY == "0"
$
$ EDIT/EDT ASDF:[ASDF]ASDF
%EDT-F-OPENIN, error opening ASDF:[ASDF]ASDF.; as input
-RMS-F-DEV, error in device name or inappropriate device type for
operation
$ SH SYM $SEVERITY
  $SEVERITY == "4"
$- Hide quoted text -

- Show quoted text -

.



Relevant Pages

  • Penny will criticise the grief
    ... edit in back of compulsory many foothills. ... Abu will transfer the lists. ...
    (sci.crypt)
  • RE: Separation of Content approval rights on Areas
    ... > Below are the rights that a user has by default when they ... > View, insert, edit, delete listings; ... > Add Items - Add items to lists, ... > SharePoint document libraries, and customize Web Part ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Word 2007: cant edit recipient list
    ... I was able to get the Edit button working, and did change the data, but now ... The first "entry" in the Word list of recipients shows the headings of my ... If you are only working with small, simple lists with not many fields it can ... the Word document and use the normal Word editing facilities to maintain the ...
    (microsoft.public.word.mailmerge.fields)
  • MOSS 2007 Problem
    ... The items that are not in a folder can be modified in the ... If there is no conflict or error, you will be able to edit ... Manage Lists right can edit these two columns. ...
    (microsoft.public.sharepoint.portalserver)
  • MOSS 2007 Problem
    ... The items that are not in a folder can be modified in the ... If there is no conflict or error, you will be able to edit the ... There is an unresolved conflict or error in the selected row or column. ... Lists right can edit these two columns. ...
    (microsoft.public.sharepoint.portalserver)