Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pcedit(1) — UTek W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pccopy(1)

pcdir(1)

pclabel(1)

sh(1)

csh(1)

pcsh(1)

vi(1)

ex(1)



PCEDIT(1)               COMMAND REFERENCE               PCEDIT(1)



NAME
     pcedit - edit a PC-DOS file

SYNOPSIS
     pcedit file [ file ... ]

DESCRIPTION
     Pcedit is a shell script which creates a temporary copy of
     the file on the UTek filesystem, invokes the editor as
     defined by the shell variable $EDITOR, and copies the file
     back when the edit session is finished.  The copying of the
     file is performed by pccopy.

     The filenames for the PC-DOS files take the form of

     pseudodisk[:/]pathname

     where pseudodisk identifies the name of the UTek device or
     file containing the PC-DOS filesystem.  The : is the PC-DOS
     filesystem delimiter.  The leading / of the PC-DOS pathname
     is optional if the optional ":" is specified; but at least
     one of the delimiters must be specified.  The character \
     (back-slash) may be used in place of / when specifying the
     PC-DOS pathname. The PC-DOS pathname is the "directory-
     path/file" of the PC-DOS file(s) within the PC-DOS
     filesystem.

     Wild-cards are permitted as normally for the UTek files and
     devices.  Wild-cards are allowed in the PC-DOS pathname if
     escaped or quoted.  The wild-cards when used in referencing
     a PC-DOS pathname are sh type wild-cards irregardless of
     what shell is in use at the time, i.e.; *.* does not match
     FOO., but does match foo.txt.

EXAMPLES
     pcedit /dev/rdfp:foo.txt PCdisk2:mydir/source.bas

     edits the file foo.txt in the root directory of the PC-DOS
     filesystem on the floppy disk, and then the file source.bas
     in the directory mydir in the PC-DOS filesystem in PCdisk2
     is edited.

FILES
     /tmp/pcedit*             Temporary files.

DIAGNOSTICS
     pcedit : temporary file  file  is busy
          A non unique temporary file name was created.

     pcedit : could not find  file
          The file specified did not exist.




Printed 7/4/87                                                  1





PCEDIT(1)               COMMAND REFERENCE               PCEDIT(1)



     pcedit : cleaning up... The editor exited abnormally.
     Pcedit will remove the temporary file.

     pcedit : could not write file back
          Pccopy failed to write the file back.

     Other meaningful error messages may be generated by
          pccopy.

VARIABLES
     $EDITOR        Your favorite editor.

RETURN VALUE
     [0]            All went well.

     [1]            An error occurred.

CAVEATS
     Wild-cards and back-slashes must be escaped or quoted when
     used in reference to the PC-DOS pathname. Wild-cards used in
     reference to the PC-DOS filepath require multiple escapes
     and/or quotes.

     Unknown results may occur if a specified argument appears to
     be a valid PC-DOS filesystem but really isn't.  This is most
     likely to occur when accessing an existing binary file on
     UTek with the 1st byte being one of the characters 0xE9 or
     0xEB and the 24th byte being one of 0xF8 or 0xFD (a valid
     boot-parameter-block); or the 513th byte being one of 0xF8
     or 0xFD (the first byte of the FAT).

     An ioctl to the floppy driver is required when the diskette
     is formatted as single-sided or 8 sector/track; therefore,
     anytime the floppy driver is accessed and the device name
     was not specified as rdfp or rdf00p the device is changed to
     rdfp or rdf00p.

SEE ALSO
     pccopy(1), pcdir(1), pclabel(1), sh(1), csh(1), pcsh(1),
     vi(1), ex(1).















Printed 7/4/87                                                  2





































































%%index%%
na:72,63;
sy:135,140;
de:275,1591;
ex:1866,481;
fi:2347,104;
di:2451,393;2988,469;
va:3457,107;
rv:3564,155;
ca:3719,1115;
se:4834,222;
%%index%%000000000169

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026