File:  [Coherent Logic Development] / freem / mlib / %ED.m
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jan 19 02:04:04 2025 UTC (2 months, 2 weeks ago) by snw
Branches: CoherentLogicDevelopment
CVS tags: start
FreeM

%ED ; EDIT A ROUTINE
    N RTN,PTH,EDITOR,CMD
    R "Routine: ",RTN
    S PTH=^$ROUTINE(RTN,"PATH")
    THROW:PTH="" "ZNOPGM"
    S EDITOR=^$SYSTEM("ENVIRONMENT","EDITOR")
    S:EDITOR="" EDITOR="vi"
    S CMD="!"_EDITOR_" "_PTH @CMD
    Q

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>