⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 man.sh

📁 操作系统源代码
💻 SH
📖 第 1 页 / 共 2 页
字号:
XFor non-UNIX systems such as MS-DOS, you can either use \fIelvprsv\fPXthe same way as under UNIX systems (by running it from your AUTOEXEC.BAT file),Xor you can run it separately with the "-R" flag to recover the filesXin one step.X.PPXIf you're editing a file when \fIelvis\fP diesX(due to a bug, system crash, power failure, etc.)Xthen \fIelvprsv\fP will preserve the most recent version of your text.XThe preserved text is stored in a special directory; it does NOT overwriteXyour text file automatically.X.PPX\fIelvprsv\fP will send mail to any user whose work it preserves,Xif your operating system normally supports mail.X.SH FILESX.IP /tmp/elv*XThe temporary file that \fIelvis\fP was using when it died.X.IP /usr/preserve/p*XThe text that is preserved by \fIelvprsv\fP.X.IP /usr/preserve/IndexXA text file which lists the names of all preserved files, and the namesXof the /usr/preserve/p* files which contain their preserved text.X.SH BUGSX.PPXDue to the permissions on the /usr/preserve directory, on UNIX systemsX\fIelvprsv\fP must be run as superuser.XThis is accomplished by making the \fIelvprsv\fP executable be owned by "root"Xand turning on its "set user id" bit.X.PPXIf you're editing a nameless buffer when \fIelvis\fP dies, then \fIelvprsv\fP will pretendXthat the file was named "foo".X.SH AUTHORX.nfXSteve KirkendallXkirkenda@cs.pdx.eduX.fi/echo x - elvrec.mansed '/^X/s///' > elvrec.man << '/'X.TH ELVREC 1X.SH NAMEXelvrec - Recover the modified version of a file after a crashX.SH SYNOPSISX.nfX\fBelvrec\fP [\fIpreservedfile\fP [\fInewfile\fR]]X.fiX.SH DESCRIPTIONX.PPXIf you're editing a file when \fIelvis\fP dies, the system crashes, or power fails,Xthe most recent version of your text will be preserved.XThe preserved text is stored in a special directory; it does NOT overwriteXyour text file automatically.X.PPXThe \fIelvrec\fP program locates the preserved version of a given file,Xand writes it over the top of your text file -- or to a new file, if you prefer.XThe recovered file will have nearly all of your changes.X.PPXTo see a list of all recoverable files, run \fIelvrec\fP with no arguments.X.SH FILESX.IP /usr/preserve/p*XThe text that was preserved when \fIelvis\fP died.X.IP /usr/preserve/IndexXA text file which lists the names of all preserved files, and the namesXof the /usr/preserve/p* files which contain their preserved text.X.SH BUGSX.PPX\fIelvrec\fP is very picky about filenames.XYou must tell it to recover the file using exactly the same pathname asXwhen you were editing it.XThe simplest way to do this is to go into the same directory that you wereXediting, and invoke \fIelvrec\fP with the same filename as \fIelvis\fP.XIf that doesn't work, then try running \fIelvrec\fP with no arguments,Xto see exactly which pathname it is using for the desired file.X.PPXDue to the permissions on the /usr/preserve directory, on UNIX systemsX\fIelvrec\fP must be run as superuser.XThis is accomplished by making the \fIelvrec\fP executable be owned by "root"Xand setting its "set user id" bit.X.PPXIf you're editing a nameless buffer when \fIelvis\fP dies, then \fIelvrec\fPXwill pretend that the file was named "foo".X.SH AUTHORX.nfXSteve KirkendallXkirkenda@cs.pdx.eduX.fi/echo x - fmt.mansed '/^X/s///' > fmt.man << '/'X.TH FMT 1X.SH NAMEXfmt - adjust line-length for paragraphs of textX.SH SYNOPSISX\fBfmt\fP [\-\fIwidth\fP] [\fIfiles\fP]...X.SH DESCRIPTIONX\fIfmt\fR is a simple text formatter.XIt inserts or deletes newlines, as necessary, to make all lines in aXparagraph be approximately the same width.XIt preserves indentation and word spacing.X.PPXThe default line width is 72 characters.XYou can override this with the \-\fIwidth\fR flag.XIf you don't name any files on the command line,Xthen \fIfmt\fR will read from stdin.X.PPXIt is typically used from within \fIvi\fR to adjust the line breaksXin a single paragraph.XTo do this, move the cursor to the top of the paragraph,Xtype "!}fmt", andXhit <Return>.X.SH AUTHORX.nfXSteve KirkendallXkirkenda@cs.pdx.eduX.fi/echo x - ref.mansed '/^X/s///' > ref.man << '/'X.TH REF 1X.SH NAMEXref - Display a C function headerX.SH SYNOPSISX\fBref\fR [-t] [-c \fIclass\fR]... [-f \fIfile\fR]... \fItag\fRX.SH DESCRIPTIONX\fIref\fP quickly locates and displays the header of a function.XTo do this, \fIref\fRXlooks in the "tags" file for the line that describes the function, and then Xscans the source file for the function.XWhen it locates the function, it displays an introductory commentX(if there is one), the function's declaration, and the declarations of allXarguments.X.SH "SEARCH METHOD"X.PPX\fIref\fR uses a fairly sophisticated tag look-up algorithm.XIf you supply a filename via \fB-f\fR \fIfile\fR, then elvis first scansXthe tags file for a static tag from that file.XThis search is limited to the tags file in the current directory.X.PPXIf you supply a classname via \fB-c\fR \fIclass\fR, then elvis searchesXfor a tag from that class.XThis search is not limited to the current directory;XYou can supply a list of directories in the environment variable \fITAGPATH\fR,Xand \fIref\fR will search through the "tags" file in each directory until it findsXa tag in the desired class.X.PPXIf that fails, \fIref\fR will then try to look up an ordinary global tag.XThis search checks all of the directories listed in \fITAGPATH\fR, too.X.PPXIf you've given the \fB-t\fR flag, then \fIref\fR will simply output the tag line thatXit found, and then exit.XWithout \fB-t\fR, though, \fIref\fR will search for the tag line.XIt will try to open the source file, which should be in the same directoryXas the tags file where the tag was discovered.XIf the source file doesn't exist, or is unreadable, then \fIref\fR will try to openXa file called "\fIrefs\fR" in that directory.XEither way, \fIref\fR will try to locate the tag, and display whatever it finds.X.SH "INTERACTION WITH ELVIS"X.PPX\fIref\fP is used by \fIelvis\fR' shift-K command.XIf the cursor is located on a word such as "splat", in the file "foo.c",Xthen \fIelvis\fR will invoke \fIref\fR with the command "ref -f foo.c splat".X.PPXIf \fIelvis\fR has been compiled with the -DEXTERNAL_TAGS flag, then \fIelvis\fR willXuse \fIref\fR \fB\fRto scan the tags files.XThis is slower than the built-in tag searching, but it allows \fIelvis\fR to accessXthe more sophisticated tag lookup provided by \fIref\fR.XOther than that, external tags should act exactly like internal tags.X.SH OPTIONSX.IP \fB-t\fRXOutput tag info, instead of the function header.X.IP "\fB-f\fR \fIfile\fR"XThe tag might be a static function in \fIfile\fR.XYou can use several -f flags to have \fIref\fR consider static tags from more than one file.X.IP "\fB-c\fR \fIclass\fR"XThe tag might be a member of class \fIclass\fR.XYou can use several -c flags to have \fIref\fR consider tags from more than one class.X.SH FILESX.IP \fBtags\fRXList of function names and their locations, generated by \fIctags\fR.X.IP \fBrefs\fRXFunction headers extracted from source files (optional).X.SH ENVIRONMENTX.IP \fBTAGPATH\fRXList of directories to be searched.XThe elements in the list are separated by eitherXsemicolons (for MS-DOS, Atari TOS, and AmigaDos), orXby colons (every other operating system).XFor each operating system, \fIref\fR has a built-in default which is probablyXadequate.X.SH NOTESX.PPXYou might want to generate a "tags" file the directory that contains theXsource code for standard C library on your system.XIf licensing restrictions prevent you from making the library source readableXby everybody, then you can have \fIctags\fR generate a "refs" file,Xand make "refs" readable by everybody.X.PPXIf your system doesn't come with the library source code, then perhaps youXcan produce something workable from the \fIlint\fR libraries.X.SH "SEE ALSO"Xelvis(1), ctags(1)X.SH AUTHORX.nfXSteve KirkendallXkirkenda@cs.pdx.eduX.fi/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -