.\" .\" Copyright (C) 1995-2014 Takashi SHIRAI .\" .\" .\" @(#)fd.1 3.01b 05/06/14 .\" fd - File & Directory maintenance tool .TH FD 1 "May 6, 2014" .de sh .br .PP \fB\\$1\fR .PP .. .SH NAME fd \- file & directory maintenance tool .SH SYNOPSIS .B fd [ .B \-abCefhiklmNnPrSsTtuvx ] [ .BI \- NAME = value ] [ .I directory [ .I directory2 .\|.\|. ]] .br .B fdsh [ .B \-abCcefhiklmNnPrSsTtuvx ] [ .I args ] .SH DESCRIPTION .B Fd is a file & directory maintenance tool considered for the text terminals on general UNIX. It aims for a clone of the same named utility which is made for the PC/AT compatible machine and PC-9800 series. In fact, it is upper compatible functionally. .B Fd shows the browser screen listing files when you have invoked it. You can input some key which is bound each command, to execute various operations. (In the following description, .B (UNIX) means that the operation is implemented only on UNIX version and not effective on MS-DOS version. As well as it, .B (DOS) means that the operation is implemented only on MS-DOS version.) .SS Options The command line option is used for setting internal shell operations and setting the internal variables described below. You can use any variable name as the internal variable, but .B fd can accept only those which are described in the below section of .BR "ENVIRONMENT VARIABLES" . If you specify .IR directory , the current directory is moved to the directory initially. If you specify .IR "directory2 .\|.\|." , the split window mode is invoked, and the current directories of the supplemental windows are moved to the each directory. The following options are available for the internal shell. .TP .BI \-c " string" Commands described by .I string are executed and exit immediately. It is effective only when it is invoked as .BR fdsh . .TP .B \-i If the .B \-i flag is present or if the standard input/output is a terminal, the shell is the interactive shell. .TP .B \-s If the .B \-s flag is present or if no .I args is specified, commands for the shell are read from the standard input. Any remaining argument specifies the positional parameter. .TP .B \-r The shell is a restricted shell. Specifically, the following operations are disallowed. .RS 10 .PD 0 .PP changing the current directory .br setting the value of .BR $PATH , .B $SHELL and .B $ENV .br specifying command names include .B / .br redirecting output .RB ( > and .BR >> ) .ta 1.5i 3i .nf .ft B IN_DIR OUT_DIR LOG_TOP LOG_DIR ATTR_FILE COPY_FILE MOVE_FILE DELETE_FILE DELETE_DIR RENAME_FILE MAKE_DIR WRITE_DIR TREE_DIR BACKUP_TAPE EDIT_FILE UNPACK_FILE PACK_FILE LOG_TREE COPY_TREE MOVE_TREE UNPACK_TREE FIND_DIR ATTR_DIR .ft R .fi .PD .RE .RS When invoked as .B rfd or .BR rfdsh , it becomes this restricted shell automatically. .RE .TP .B \-l The shell is a login shell. .TP .B \-N Reading the initial configuration files is omitted. .PP In addition, the options described below in the description of .B set the builtin command are available. .SS Screen Layout .B Fd has the 3 major screen modes. In the browser screen, you can select from the file list and execute each command. In the archive browser screen, files in the archive file are listed separately by directory, and you can browse as well as the browser screen. In the tree screen, you can move on the directory tree and select the directory path. In all screen modes, each .B 3 lines on the top/bottom of the screen are used for the various information of .B fd. The top information lines sometimes become .B 4 lines. The screen layout is the following. .IP line# 10 Description .IP \fB1\fP The title line. The clock at the right end is updated every .B 10 seconds. .IP \fB2\fP The information line. It displays information in this order: the current page (and the total pages), the number of marks (ant the total marks), the sorted type, the pattern string for file search. .IP \fB3\fP The path line. It displays the fullpath of the current directory. In the archive browser screen, it displays the fullpath of the archive file and the current path in the archive. .IP "\fB2\fP (optional)" The file size information line. It displays the total size of the marked files in the directory (and the total size of all files), the total capacity and the free size of the file system including the current directory. This line appears by .B SIZEINFO the internal variable setting. When this line is displayed, The information line and the path line are displayed 1 line under each. .IP "\fBbottom \- 2\fP" The stack line. It displays files temporarily which you push in stack, when arranging files. .IP "\fBbottom \- 1\fP" The function line. It displays the operations of function keys. .IP "\fBbottom\fP" The status line. It displays the status of the file on the cursor position. It also displays warning messages when command is executed with some troubles. .SS Internal Commands You can use the following internal commands on .BR fd . While any user can change the key binding for these internal commands, here shows the default key binding. The identifier is used when it is executed from the command line of .B EXECUTE_SH command, and when the user defines the key binding. .br .ta 2i 5i .nf Identifier Command Key \fBCUR_UP\fP Move a cursor up \fBUp\fP \fBCUR_DOWN\fP Move a cursor down \fBDown\fP \fBCUR_RIGHT\fP Move a cursor right \fBRight\fP \fBCUR_LEFT\fP Move a cursor left \fBLeft\fP \fBROLL_UP\fP Turn ahead to the next page \fBPageDown\fP \fBROLL_DOWN\fP Turn back to the prev. page \fBPageUp\fP \fBCUR_TOP\fP Move a cursor top \fBBeg\fP(<) \fBCUR_BOTTOM\fP Move a cursor bottom \fBEol\fP(>) \fBFNAME_RIGHT\fP Shift right a filename \fB(\fP \fBFNAME_LEFT\fP Shift left a filename \fB)\fP \fBONE_COLUMN\fP Change layout into 1 column \fB1\fP \fBTWO_COLUMNS\fP Change layout into 2 columns \fB2\fP \fBTHREE_COLUMNS\fP Change layout into 3 columns \fB3\fP \fBFIVE_COLUMNS\fP Change layout into 5 columns \fB5\fP \fBMARK_FILE\fP Mark a file \fBTab\fP \fBMARK_FILE2\fP Mark and move down \fBSpace\fP \fBMARK_FILE3\fP Mark and move in a page \fB^Space\fP(^@) \fBMARK_ALL\fP Mark all files \fBHome\fP(+) \fBMARK_REVERSE\fP Mark all files reversely \fBEnd\fP(-) \fBMARK_FIND\fP Mark the matched files \fB\(**\fP \fBIN_DIR\fP Change to a sub directory \fBReturn\fP \fBOUT_DIR\fP Change to a parent directory \fBBs\fP \fBLOG_TOP\fP Change to a root directory \fB\e\fP \fBREREAD_DIR\fP Reread the current directory \fB^L\fP \fBPUSH_FILE\fP Push a file to the stack \fBDel\fP(]) \fBPOP_FILE\fP Pop a file from the stack \fBIns\fP([) \fBLOG_DIR\fP Change to a logical directory \fBF1\fP(l) \fBEXECUTE_FILE\fP Execute a file \fBF2\fP(x) \fBCOPY_FILE\fP Copy a file \fBF3\fP(c) \fBDELETE_FILE\fP Delete a file \fBF4\fP(d) \fBRENAME_FILE\fP Rename a file \fBF5\fP(r) \fBSORT_DIR\fP Sort the current directory \fBF6\fP(s) \fBFIND_FILE\fP Find files \fBF7\fP(f) \fBTREE_DIR\fP Display the tree screen \fBF8\fP(t) \fBEDIT_FILE\fP Edit a file \fBF9\fP(e) \fBUNPACK_FILE\fP Unpack a file \fBF10\fP(u) \fBATTR_FILE\fP Change a file attribute \fBF11\fP(a) \fBINFO_FILESYS\fP Display a file system info. \fBF12\fP(i) \fBMOVE_FILE\fP Move a file \fBF13\fP(m) \fBDELETE_DIR\fP Delete a directory \fBF14\fP(D) \fBMAKE_DIR\fP Make a directory \fBF15\fP(k) \fBEXECUTE_SH\fP Execute a child process \fBF16\fP(h) \fBWRITE_DIR\fP Write a displayed directory \fBF17\fP(w) \fBBACKUP_TAPE\fP Backup into a tape \fBF18\fP(b) \fBVIEW_FILE\fP View a file \fBF19\fP(v) \fBPACK_FILE\fP Pack a file \fBF20\fP(p) \fBLOG_TREE\fP Change directory with tree \fBL\fP \fBCOPY_TREE\fP Copy a file with tree \fBC\fP \fBMOVE_TREE\fP Move a file with tree \fBM\fP \fBUNPACK_TREE\fP Unpack a file with tree \fBU\fP \fBFIND_DIR\fP Find a file recursively \fBF\fP \fBATTR_DIR\fP Change attributes recursively \fBA\fP \fBSYMLINK_MODE\fP Switch the symbolic link mode \fBS\fP \fBFILETYPE_MODE\fP Switch the file type symbol \fBT\fP \fBDOTFILE_MODE\fP Switch the dot file display \fBH\fP \fBFILEFLG_MODE\fP Switch the file flag display \fBO\fP \fBLAUNCH_FILE\fP Invoke the launcher \fBReturn\fP \fBSEARCH_FORW\fP Search forward a file \fB^S\fP \fBSEARCH_BACK\fP Search backward a file \fB^R\fP \fBSPLIT_WINDOW\fP Split into the windows \fB/\fP \fBNEXT_WINDOW\fP Change to the next window \fB^\fP \fBWIDEN_WINDOW\fP Widen the current window \fBW\fP \fBNARROW_WINDOW\fP Narrow the current window \fBN\fP \fBKILL_WINDOW\fP Kill the current window \fBK\fP \fBEDIT_CONFIG\fP Invoke the customizer \fBE\fP \fBHELP_MESSAGE\fP Display a help screen \fB?\fP \fBQUIT_SYSTEM\fP Quit from fd \fBEsc\fP(q) \fBWARNING_BELL\fP Bell for warning \fBNO_OPERATION\fP Do nothing .fi .PP The last 2 internal commands are used when you want change the default key binding to cancel. .SS Internal Commands Description The detail of each internal command is the following. Internal commands with similar function are described together. .RS 3 .IP "\fBMove cursor\fP" 5 Move a cursor. .IP "\fBTurn page\fP" Turn to the previous/next page, when files are not completely held in a screen. Also if you try to move out of the page with Cursor move, the page will be turned. .IP "\fBMove to the top/bottom\fP" Move a cursor to the top/bottom of the file list. When the list is not held in a screen, the page is turned. .IP "\fBShift filename\fP" Shift the displayed string of filename on the cursor position, when the filename is longer than the prepared column width. It is displayed as shifted to right/left by 1 character. The display of the status line is also shifted simultaneously. .IP "\fBChange layout\fP" Change the number of columns into each value. There are usually .B 2 columns per screen. As the column width per file is changed according to the number of columns, the displayed information is also changed. .IP "\fBMark file\fP" Mark the file on the cursor position. You cannot mark any directory. .RB [ Space ] marks and moves down a cursor. .RB [ ^Space ] also marks and moves down a cursor, but doesn't turn the page. .RB [ Home ] marks all the files, .RB [ End ] marks all the files reversely. .RB [ \(** ] additionally marks the file which matches the wildcard. You must input the wildcard string whenever you push .RB [ \(** ]. Marked files are used as the target of .BR ATTR_FILE , .BR COPY_FILE , .BR DELETE_FILE , .BR MOVE_FILE , .B UNPACK_FILE and the user defined command macros. .IP "\fBChange directory\fP" .RB [ Return ] changes the current directory to the directory on the cursor position. If you want to change it to the parent directory, you should move a cursor to the file of ".\|." and push .RB [ Return ], or simply push .RB [ Bs ]. .RB [ \e ] changes the current directory to the root directory. .IP "\fBPush/pop file stack\fP" .RB [ Del ] pushes the file on the cursor position to the file stack, and temporarily deletes the file from the file list screen. You can push files to the file stack up to .B 5 files. .RB [ Ins ] pops the file from the file stack and insert it on the cursor position. The last pushed file is popped first. But this order is expediently displayed in .BR fd , and it is reset by Directory move. .IP "\fBRedraw screen\fP" Redraw the file list screen by rereading the information of the current directory. It is useful when some other process add/delete files, or when something break the screen display. Moreover, when you use the terminal which doesn't raise .B SIGWINCH signal at changing the screen size (like .BR kterm (1) on HP-UX etc.), you must intentionally redraw after you change the screen size. .IP "\fBChange logical directory\fP (Logdir)" Change the current directory to the inputted pathname. When you input the pathname which starts with '/', it means not the relative move but the absolute move. When you input the pathname "\fB.\fP", the pathname of the current directory is adjusted into absolute expression. Except this case, the current directory always is shown as the virtual pathname, by reason of a link and so on. When you input the pathname "\fB?\fP", you can move to the current directory when .B fd was invoked. When you input the pathname "\fB\-\fP", you can move to the last visited directory. Moreover, When you input the pathname "\fB@\fP" in floppy drive, you can move to the directory on UNIX file system, where you existed before moving to floppy drive. .B (UNIX) (Note: This command is called as "Loddsk" in the original FD on MS-DOS, which is short for "LOGical DiSK drive". This "logical" means the drive name prefixed to pathnames, and it is virtually named against "physical disk drive". On UNIX, since "logical disk drive" never means pathname nor directory, this command name "Change logical directory" is not suitable. But this name is expediently inherited from the original version.) .IP "\fBExecute file\fP (eXec)" Execute the file on the cursor position with some parameters, as the child process. The cursor position in command line exists after the filename in case of the executable file, and before the filename except it. You should fill suitable parameters or command name in each case. The up/down cursor keys can provide the command history which you executed before. On MS-DOS version, the LFN form filename in the command line which is quoted with the quotation mark \fB"\fP is automatically replaced into 8+3 form filename before execution. In this case, when there is the filename described by the string quoted with \fB"\fP, this string is always replaced into 8+3 form filename after deleting \fB"\fP, otherwise it is never replaced including \fB"\fP. .IP "\fBCopy file\fP (Copy)" Copy the file on the cursor position to the specified directory. When the cursor position indicates a directory, its contents are copied recursively. When some files are marked, the target is not the file on the cursor position but the marked files. When the same named file exists in the destination, you can select the operation from the following: "Update (by timestamp)", "Rename (each copied file)", "Overwrite", "Not_copy_the_same_name", "Forward". If you select "Forward", you should specify the directory as the destination to forward. All files which have the same names are moved to the specified directory. .IP "\fBDelete file\fP (Delete)" Delete the file on the cursor position. No directory can be deleted. When some files are marked, the target is not the file on the cursor position but the marked files. When you don't have write permission on the file, you are confirmed for security. .IP "\fBRename file\fP (Rename)" Rename the file on the cursor position. You cannot rename to the same name as any existent file. When you specify the pathname with some directory name, it is also moved to the directory. .IP "\fBSort file\fP (Sort)" Sort files in the current directory. You can select the sorted type from the following: "fileName", "Extension", "Size", "Timestamp", "Length (of filename)", and specify "Up (incremental order)" or "Down (decremental order)". When the sorted type before sorting is the one except "No chg (not sort)", the choice will include "No chg". When you sort after sorting another sorted type, the previous sorted result is based in sorting. This sorting has a priority except specified type, the directory is always precedes any file, except for the case of "No chg". In case of "Length", files which have the same filename length are sorted in order of their names. But this sorting is expediently displayed in .BR fd , and it is reset by Directory move. .IP "\fBFind file\fP (Find)" Find the files matching the wildcard, and display only them. The filename which starts with '.' doesn't match the wildcard which starts with '\(**' nor '?'. If you want to cancel the File find, you should move the current directory, or do .B FIND_FILE again and input a null line. When the current directory has the files which have the extension registered to associate with an archive browser, the string which starts with '/' is used to find not the filename but the filename in archive files, and only the archive files which contain matched files are displayed. This function is available in the archive browser. After Find file, you can not do .BR WRITE_DIR . .IP "\fBDisplay tree screen\fP (Tree)" Display the directory tree based on the current directory. You can select the directory in the tree screen, to move the current directory. .IP "\fBEdit file\fP (Editor)" Edit the file on the cursor position. The editor is used referring .B EDITOR the internal variable, or referring .B EDITOR the environment variable when the internal variable is undefined. .IP "\fBUnpack file\fP (Unpack)" Unpack the archive file on the cursor position into the specified directory. In builtin configuration, you can unpack only the tar file and its compressed file and the LHa compressed file. You can describe configurations in the initial configuration file to support archivers except these. .IP "\fBChange attribute\fP (Attr)" Change the file access mode, the timestamp and the owner/group of the file on the cursor position. When some files are marked, the target is not the file on the cursor position but the marked files. In case of the marked files, you must select the mode, the timestamp or the owner/group, before changing it all together. When you input the mode, cursor keys move a cursor to the position you want to change, .RB [ Space ] reverses the attribute on the position. You should notice that the attribute of the execution bit is not a binary toggle but a triple toggle, which includes setuid bit, setgid bit and sticky bit respectively. If the target is the marked files, .RB [ m ](Mask) will mask a bit on the cursor position with .RB ' * ', to keep the value of the original file attribute. When you input the timestamp, you move a cursor to the position you want to change, and input a numeric value. When you input the owner/group, you move a cursor to the position for each name, and input a name or a ID value with .RB [ Space ]. You can use the completion for a user name and a group name to input each name. Finally, .RB [ Return ] executes the change. You can cancel with .RB [ Esc ]. Be careful that the limit check of date is not perfect. Moreover, .RB [ a ](Attr), .RB [ d ](Date), .RB [ t ](Time), .RB [ o ](Owner) and .RB [ g ](Group) move a cursor to the each beginning of input line. On the OS which has the attribute of file flags, you can change the file flags as well as the mode. In this case, .RB [ f ](Flag) move a cursor to the beginning of input line of file flags. But the value of flags which you can change is based on your permission. .IP "\fBFile system information\fP (Info)" Display the information of the specified file system. When the inputted pathname is not the special file which indicates a file system, the information of the file system including the pathname is displayed. .IP "\fBMove file\fP (Move)" Move the file on the cursor position to the specified directory. When the cursor position indicates a directory, the directory itself is moved. When some files are marked, the target is not the file on the cursor position but the marked files. When the same named file exists in the destination, you can select the operation as well as .BR COPY_FILE . When the destination belongs to the different file system, copy and delete are just executed continuously. .IP "\fBDelete directory\fP (rmDir)" Delete the directory on the cursor position recursively. When the directory in a symbolic link, only the link is deleted and the linked directory has no effect. .IP "\fBMake directory\fP (mKdir)" Make the sub directory on the current directory. When the inputted sub directory string includes '/', which is the pathname delimiter, it goes on making directory recursively until the directory described by the string is finally created. When you input the pathname which starts with '/', the directory is made not on the current directory but on the absolute path described. .IP "\fBExecute child process\fP (sHell)" Execute the inputted command string as the child process, by handling the internal shell. You can refer the command history and use automatic LFN replacement, as well as .BR EXECUTE_FILE . When you push only .RB [ Return ] without any input, the user shell which is described by .B SHELL the internal variable or the environment variable is invoked. In this case, you should input "\fBexit\fP" to return to .BR fd . When the value of .B SHELL is .BR fdsh , the internal shell is executed as the interactive shell. However, when there is the same command name as a builtin command or a internal command, the builtin command or the internal command are executed instead of the external command. You can refer the clause of `\fBBuiltin Commands\fP' for the details of the builtin command. .IP "\fBWrite directory\fP (Write)" Write the displayed directory. The gap between files on the directory entry is filled. When it is executed after arranged by .BR PUSH_FILE , .B POP_FILE and .BR SORT_DIR , the result is written. When the displayed directory doesn't belong to the hierarchy under your home directory, you are confirmed for security whether if any other user doesn't use the directory. Since it is insecure, you cannot write the NFS mounted directory and some special directories. If you execute the internal command which arranges the file order, and then try to execute the internal command which will break that order, you will be confirmed whether if you write the directory or not, just before the internal command is executed. For this function, you can write the directory without intentionally executing this Directory write command. But when the displayed directory is not under your home directory, this confirmation is not done. .IP "\fBBackup tape\fP (Backup)" Backup the file on the cursor position into the specified storage device. When the cursor position indicates a directory, all of its contents is backuped. When some files are marked, the target is not the file on the cursor position but the marked files. .BR Tar (1) is used for backup. When you specify the filename except special files indicates devices as input of the device name, the archive file is created with that filename. .IP "\fBView file\fP (View)" View the file on the cursor position. The pager is used referring .B PAGER the internal variable, or referring .B PAGER the environment variable when the internal variable is undefined. .IP "\fBPack file\fP (Pack)" Pack the file on the cursor position into the specified archive file. When the cursor position indicates a directory, all of its contents is packed into the archive file. When some files are marked, the target is not the file on the cursor position but the marked files. According to the extension of the inputted archive file, the associated archiver is automatically selected. In builtin configuration, you can pack only the tar file and its compressed file and the LHa compressed file. You can describe configurations in the initial configuration file to support archivers except these. When you use .BR tar (1), you may sometimes be unable to pack a lot of files at once, because of the maximum parameter length which can be given at once. In those case, you can create the archive file with .BR BACKUP_TAPE . .IP "\fBOperations with tree\fP" .RB [ L ], .RB [ C ], .RB [ M ] and .RB [ U ] can make you select the pathname from the directory tree instead of the string input. They execute the internal command equivalent to .BR LOG_DIR , .BR COPY_FILE , .B MOVE_FILE and .BR UNPACK_FILE , respectively. .IP "\fBFind file recursively\fP" Find the file matching the wildcard recursively under the current directory, and move the directory where the found file exists. When the cursor position indicates a directory, it find the file under the directory on the cursor position instead of the current directory. You will be confirmed for each matching file whether if you move or not, and you can select .RB [ n ](No) unless the target file is displayed. .IP "\fBChange attributes recursively\fP" Change attributes the directory on the cursor position revursively. As well as changing attributes of the marked files, you must select the mode, the timestamp or the owner/group, before changing it all together with each file under the directory. When you input the mode, you should notice that the attribute of the execution bit is not a triple toggle but a 5-states toggle, which includes .RB ' X ' and .RB ' ! '. .RB ' X ' means setting the bit only if the object is a directory or some execution bits are set. .RB ' ! ' also means unsetting the bit only if the object is a directory or some execution bits are set. .RB [ m ](Mask) will mask a bit on the cursor position with .RB ' * ', to keep the value of the original file attribute. .IP "\fBInvoke launcher\fP" .RB [ Return ] executes the operation according to the extension of the file on the cursor position, unless the cursor position indicates a directory. In builtin configuration, the archive browser is registered with the tar file and its compressed file and the LHa compressed file. You can describe configurations in the initial configuration file to register launchers except these. When the file on the cursor position has the unregistered extension, it will behave as same as .BR VIEW_FILE . In the archive browser, the registered launcher is available, so that you can invoke the archive browser recursively. .IP "\fBSwitch symbolic link mode\fP" In case of the symbolic link file, the file information displayed in the file column and the status line shows not the status of its referential file but the status of the link itself. It switches to show the status of the referential file. .B (UNIX) In the mode of showing the status of the referential file, .RB ' S '(Symbolic Link) is displayed on the left end of the function line. .IP "\fBSwitch file type symbol mode\fP" Switch to display the symbol which means the file type after the filename in the file list, like as the display in .B \-F option of .BR ls (1). It is toggle to switch if display the symbol or not. The each symbol means the following. .RS 10 .ta 0.5i .nf \fB/\fP directory \fB@\fP symbolic link \fB\(**\fP executable file \fB=\fP socket \fB\(bv\fP FIFO .fi .RE .RS 10 (MS-DOS version and the floppy drive) .ta 0.5i .nf \fB/\fP directory \fB\(**\fP executable file \fB=\fP system file \fB\(bv\fP label .fi .RE .RS In the mode of displaying the file type symbol, .RB ' T '(Type) is displayed on the left end of the function line. .RE .IP "\fBSwitch dot file display mode\fP" Switch not to display the file whose filename starts with '.' in the file list. It is toggle to switch if display the dot file or not. In the mode of not displaying the dot file, .RB ' H '(Hidden) is displayed on the left end of the function line. .IP "\fBSwitch file flag display mode\fP" Switch to display the file flag, which exists in some OS, instead of the file mode on each file. It is toggle to switch if display the file flag or the file mode. This is not available on any OS without the file flag. The each symbol means the following respectively. .B (UNIX) .RS 10 .ta 0.5i .nf \fBA\fP Archived \fBN\fP Nodump \fBa\fP system Append-only \fBc\fP system unChangeable (immutable) \fBu\fP system Undeletable \fBa\fP user Append-only \fBc\fP user unChangeable (immutable) \fBu\fP user Undeletable .fi .RE .RS In the mode of displaying the file flag, .RB ' F '(Flags) is displayed on the left end of the function line. .RE .IP "\fBSearch file\fP" Search the current directory incrementally for the filename, with moving a cursor. When you execute this command, to switch to the search mode, a prompt appears in the function line. You can input the filename in this prompt, and a cursor will move to the filename matching the string which is already inputted at that present. .RB [ Esc ] switches to the normal mode. .IP "\fBSplit window\fP" Split the current window. When you split a window in the normal non-split window mode, it will be the split window mode in which the screen is split into 2 windows vertically. In the split window mode, you can operate works individually on each window. When you split a window in the split window mode, the current working window is split into 2 windows vertically. You can make split windows up to .BR 5 . .IP "\fBChange window\fP" Change effective window to the next in the split window mode. When the current window is the last, the first window will be effective. In the non-split window mode, it is ineffective. .IP "\fBWiden window\fP" Widen the current window size in the split window mode, to narrow the next window size. When the current window is the last, the first window size will be narrowed. In the non-split window mode, it is ineffective. .IP "\fBNarrow window\fP" Narrow the current window size in the split window mode, to widen the next window size. When the current window is the last, the first window size will be widened. In the non-split window mode, it is ineffective. .IP "\fBKill window\fP" Kill the current window in the split window mode, to join it to the previous window. When the current window is the first, it will be joined to the last window. If the result number of windows is one, it will be the non-split window mode. In the non-split window mode, it is ineffective. .IP "\fBInvoke customizer\fP" Invoke the customizer which interactively changes the configurations to be set up by the internal variable and the builtin command. While the configurations which is set up here is reflected immediately, you must intentionally save configurations in the customizer if you want to reflect in the initial configuration file. .IP "\fBDisplay help\fP" Display the list of the current key bindings and their command descriptions. When the list is not completely held in a screen, it prompts for every screen. In case of the circulated executable binary file, this screen shows the E-mail address of the circulation manager in the function line. Please contact here when something will happen. .IP "\fBQuit\fP (Quit)" Quit from .BR fd . .RE .SS Commands In .B EXECUTE_SH and the initial configuration file, you can use the internal commands described above and the builtin commands described below, as well as the external commands. With these commands, a pipeline can consist of one or more commands separated by .B \(bv or .BR \(bv\|& . .B \(bv connects the standard output of the previous command to the standard input of the next command. .B \(bv\|& connects both the standard output and the standard error output of the previous command to the standard input of the next command. The exit status of a pipeline is the exit status of the last command. You can start a pipeline with .BR ! , then the exit status of a pipeline will be the logical NOT of the exit status of the last command. Moreover, a command list can consist of one or more pipelines separated by .BR ; , .BR & , .BR &\|\(bv , .BR && , .BR \(bv\|\(bv . This command list can end with .BR ; , .B & or .BR &\|\(bv . These separators mean the following. .RS 3 .PD 0 .IP "\fB;\fP" 5 Execute commands sequentially. .IP "\fB&\fP" Execute commands synchronously, not waiting for the preceding pipeline to finish. .B (UNIX) .IP "\fB&\|\(bv\fP" Same as .BR & , except to immediately .B disown the job. .B (UNIX) .IP "\fB&\|&\fP" Execute the following pipeline only if the preceding pipeline returns a .B 0 exit status. .IP "\fB\(bv\|\(bv\fP" Execute the following pipeline only if the preceding pipeline returns a .RB non\- 0 exit status. .PD .RE In these command lists, a newline means as same as .BR ; . The input/output of each command in the command list can be redirected with the following redirectees. These redirectees can be placed on any position in the command string. .RS 3 .PD 0 .IP "\fIn\fR\fB<\fP\fIfile\fR" 10 Redirect the input indicated by the file descriptor .I n into the input from .IR file . If .I n is omitted, it is regarded as the standard input is specified. .IP "\fIn\fR\fB>\fP\fIfile\fR" Redirect the output indicated by the file descriptor .I n into the output to .IR file . If .I n is omitted, it is regarded as the standard output is specified. If .I file doesn't exist it is created, otherwise it is truncated to 0 length before output. .IP "\fIn\fR\fB>\|\(bv\fP\fIfile\fR" Same as .BR \> , except to force to overwrite existent files even if .B \-C option is set by .B set the builtin command. .IP "\fIn\fR\fB>\|>\fP\fIfile\fR" Redirect the output indicated by the file descriptor .I n into the output to .IR file . If .I n is omitted, it is regarded as the standard output is specified. If .I file doesn't exist it is created, otherwise output is appended to it. .IP "\fIn1\fR\fB<\|&\fP\fIn2\fR" Redirect the input indicated by the file descriptor .I n1 into the input indicated by the file descriptor .IR n2 . If .I n1 is omitted, it is regarded as the standard input is specified. .IP "\fIn1\fR\fB>\|&\fP\fIn2\fR" Redirect the output indicated by the file descriptor .I n1 into the output indicated by the file descriptor .IR n2 . If .I n1 is omitted, it is regarded as the standard output is specified. .IP "\fB&\|>\fP\fIfile\fR" Redirect both the standard output and the standard error output into the output to .IR file . If .I file doesn't exist it is created, otherwise it is truncated to 0 length before output. .IP "\fB&\|>\|\(bv\fP\fIfile\fR" Same as .BR &\|> , except to force to overwrite existent files even if .B \-C option is set by .B set the builtin command. .IP "\fB&\|>\|>\fP\fIfile\fR" Redirect both the standard output and the standard error output into the output to .IR file . If .I file doesn't exist it is created, otherwise output is appended to it. .IP "\fIn\fR\fB<\|>\fP\fIfile\fR" Redirect both the input/output indicated by the file descriptor .I n into the input/output from/to .IR file . If .I n is omitted, it is regarded as the standard input is specified. .IP "\fIn\fR\fB>\|<\fP\fIfile\fR" Redirect both the input/output indicated by the file descriptor .I n into the input/output from/to .IR file . If .I n is omitted, it is regarded as the standard output is specified. .IP "\fIn1\fR\fB<\|>\|&\fP\fIn2\fR" Redirect both the input/output indicated by the file descriptor .I n1 into the input/output indicated by the file descriptor .IR n2 . If .I n1 is omitted, it is regarded as the standard input is specified. .IP "\fIn1\fR\fB>\|<\|&\fP\fIn2\fR" Redirect both the input/output indicated by the file descriptor .I n1 into the input/output indicated by the file descriptor .IR n2 . If .I n1 is omitted, it is regarded as the standard output is specified. .IP "\fIn\fR\fB<\|\-\fP" .IP "\fIn\fR\fB<\|&\|\-\fP" Close the input indicated by the file descriptor .IR n . If .I n is omitted, it is regarded as the standard input is specified. .IP "\fIn\fR\fB>\|\-\fP" .IP "\fIn\fR\fB>\|&\|\-\fP" Close the output indicated by the file descriptor .IR n . If .I n is omitted, it is regarded as the standard output is specified. .IP "\fIn\fR\fB<\|>\|\-\fP" .IP "\fIn\fR\fB<\|>\|&\|\-\fP" Close both the input/output indicated by the file descriptor .IR n . If .I n is omitted, it is regarded as the standard input is specified. .IP "\fIn\fR\fB>\|<\|\-\fP" .IP "\fIn\fR\fB>\|<\|&\|\-\fP" Close both the input/output indicated by the file descriptor .IR n . If .I n is omitted, it is regarded as the standard output is specified. .IP "\fIn\fR\fB<\|<\fP[\fB\-\fP]\fIword\fR" Redirect the input indicated by the file descriptor .I n into the input which is read up to a input line as same as .IR word , or to an end of file. If any part of .I word is quoted, no input line is evaluated. Otherwise, each input line is evaluated to expand variables or replace strings. When you specify .BR \- , all tabs on the beginning of input lines is stripped to be send to a command. If .I n is omitted, it is regarded as the standard input is specified. .PD .RE When you specify the file with each redirect, you can describe the filename as .RI ` scheme\fB://\fPhost\fB:\fPport ' form to open the following TCP sockets, according to the string of .IR scheme . The authentication of your OS will restrict specifying the accepting port. .B (UNIX) .RS 3 .PD 0 .IP "\fBconnect://\fP\fIhost\fR\fB:\fP\fIport\fR" 10 This socket is connected to the remote host specified by .I host with the TCP port number specified by .IR port . .IP "\fBaccept://\fP[\fIhost\fR][\fB:\fP\fIport\fR]" This socket is accepted to the local host specified by .I host with the TCP port number specified by .IR port . If .I host is omitted, this socket will be accepted to any host. If .I port is omitted, the port within the range determined by the OS is used. .IP "\fBbind://\fP[\fIhost\fR][\fB:\fP\fIport\fR]" This socket is bound to the local host specified by .I host with the TCP port number specified by .IR port , preparing .B accept the builtin command. If .I host is omitted, this socket will be accepted to any host. If .I port is omitted, the port within the range determined by the OS is used. .PD .RE On each command line, the string from .RB ' # ' to the end of line and a null line are ignored. When the line ends with .RB ' \e ', it is referred as continuing into the next line, so that you can split a long line with this. .SS Builtin Commands .B Fd has the following builtin commands. These builtin commands can be used in .B EXECUTE_SH and the initial configuration file. .IP "\fBif\fP \fIlist\fR \fBthen\fP [\fBelif\fP \fIlist\fR \fBthen\fP \fIlist\fR] .\|.\|. [\fBelse\fP \fIlist\fR] \fBfi\fP" 14 The .I list of .B if clause and .B elif clauses are executed in order, and if each exit status is a 0, then the .I list of .B then clause associated with it is executed and the .B elif clauses after it are ignored. If no .I list of .B if clause nor .B elif clauses return a 0, the .I list of .B else clause is executed. If no .I list of .B then clauses nor .B else clause is executed, then .B if returns a .B 0 exit status. .IP "\fBwhile\fP \fIlist\fR \fBdo\fP \fIlist\fR \fBdone\fP" The .I list of .B while clause is executed repeatedly, and while its exit status is 0, the .I list of .B do clause is executed repeatedly. If the .I list of .B do clause is never executed, then .B while returns a .B 0 exit status. .IP "\fBuntil\fP \fIlist\fR \fBdo\fP \fIlist\fR \fBdone\fP" The .I list of .B until clause is executed repeatedly, and while its exit status is NOT 0, the .I list of .B do clause is executed repeatedly. If the .I list of .B do clause is never executed, then .B until returns a .B 0 exit status. .IP "\fBfor\fP \fINAME\fR [\fBin\fP \fIvalue\fR .\|.\|.] \fBdo\fP \fIlist\fR \fBdone\fP" .I NAME the internal variable is substituted for values of .I value one by one, and .I list is executed according to the each value. If .B in .I value is omitted, then each positional parameter is substituted one by one. .IP "\fBcase\fP \fIword\fR \fBin\fP [\fIpattern\fR [\fB\(bv\fP \fIpattern\fR] .\|.\|. \fB)\fP \fIlist\fR \fB;\|;\fP] .\|.\|. \fBesac\fP" The string .I word is compared with the each .IR pattern , .I list associated with the .I pattern which first matches it is executed. .IP "\fB(\fP\fIlist\fR\fB)\fP" Execute .I list in a sub shell. .IP "\fB{\fP \fIlist\fR\fB;\fP \fB}\fP" Execute .I list in the current shell. .IP "\fINAME\fR\fB=\fP[\fIvalue\fR] [\fIcom\fR .\|.\|.]" Define a internal variable which is available only in .BR fd . It substitutes the value (string) .I value for .I NAME the internal variable. When you describe the command .I com after the definition of a variable, .I com is executed on the state where this variable is regarded as the environment variable. In this case, the definition of .I NAME is not remain as the environment variable nor the internal variable. If .I value is omitted, the value of .I NAME the internal variable is defined as a null. If you want to delete the definition of a internal variable, use .B unset the builtin command. .IP "\fIname\fR\fB()\fP \fB{\fP \fIlist\fR; \fB}\fP" Define a function whose body is .IR list , as the name of .IR name . The defined function can be used in the command line of .B EXECUTE_SH and each command macro described below. You can use the positional parameter .BI $ n in each description of .IR list , which indicates the argument when the function is invoked. .B $0 is .I name itself, and .BR $1 \- $9 indicates each argument. Although you cannot omit .B { } and .IR list , you can omit .B { } before/after .I list which consists of a single command. If you want to delete the definition of a function, use .B unset the builtin command. .IP "\fB!\fP\fInum\fR" Execute the command which has the history number specified with the numeric value .IR num . When .I num is negative value, it executes the command which has the history number as the current history number minus .IR num . .IP "\fB!!\fP" Execute the previous command. This is synonym for .BR !\-1 . .IP "\fB!\fP\fIstr\fR" Execute the command history which starts with the string .IR str . .IP "\fB:\fP [\fIarg\fR .\|.\|.]" No effect. But it evaluates .I arg and performs redirection. .IP "\fB.\fP \fIfile\fR" .PD 0 .IP "\fBsource\fP \fIfile\fR" .PD Read and evaluate commands from .IR file . .I File must exists on the directory which .B PATH includes, or be described with pathname. The each line format is based on the format of .BR EXECUTE_SH . You can describe this in the file as nesting. .IP "\fBaccept\fP [\fIfd\fR]" Accept the connection with the file descriptor indicated by .IR fd , and the connected socket will be assign to .I fd of the same file descriptor. At the same time, the accepted socket will be closed. When .I fd is not the redirection as the form of .BR bind:// , this command will be failed. In comparison with the redirection as the form of .BR accept:// , the shell can receive controls before establishing connection to negotiate the TCP port number with the remote host in advance. .B (UNIX) If .I fd is omitted, the connection will be accepted with the standard input. .IP "\fBaddcr\fP [\fB-1\fP] [\fIfile\fR]" Output the string read from the file specified by .IR file , line by line. The newline of each line is unified into CR-NL (\er\en). It is useful to pipe the output to some socket. If .I file is omitted, it is regarded as the standard input is specified. If .B \-1 is specified, it will output just 1 line and exit. .IP "\fBalias\fP [\fIname\fR[\fB=\fP\fIcom\fR]]" Define a alias whose body is .IR com , as the name of .IR name . The defined alias can be used in the command line of .B EXECUTE_SH and each command macro described below. The alias substitution is performed recursively. If .I com is omitted, the alias of .I name is displayed. If both .I com and .I name are omitted, all the current alias definition list is displayed. .IP "\fBarch\fP \fIext\fR [\fIpack unpack\fR]" Register the archiver command associated with the archive file which has .I ext the extension. The pack command is specified as .IR pack , and the unpack command is specified as .IR unpack , using the macro representation quoted with \fB"\fP. When .I ext starts with .BR / , uppercase/lowercase is ignored in the comparison of any extension. If both .I pack and .I unpack are omitted, the archiver command registration for .I ext the extension is deleted. .IP "\fBbg\fP [\fIjob\fR]" Continue the execution of the job specified with .I job in the background. The following format is available to specify a job. .B (UNIX) .RS 20 .ta 0.5i .nf \fB%\fP \fB%+\fP the current job \fB%\-\fP the previous job \fB%\fP\fIn\fR the job with job number \fIn\fR \fB%\fP\fIstr\fR the job whose command line starts with \fIstr\fR .fi .RE .RS But, you must describe these .B % in the command line of .B EXECUTE_SH as the duplicated expression, such as .BR %% , for the reason of the parameter macro function described below. If .I job is omitted, the current job is continued in the background. .RE .IP "\fBbind\fP \fIc\fR [\fIcom1\fR [\fIcom2\fR] [\fB:\fP\fIcomment\fR]]" Bind the command .I com1 to the key .IR c . When you want to specify a control character for .IR c , you can prefix .B ^ into 2 characters, such as ^A. When you want to specify a character with the META key (or the ALT key on MS-DOS version), you can prefix .B @ into 2 characters, such as @a. When you want to specify a function key and a special key, you can use each identifier described in .B keymap command after, such as F10. Or you can describe the escape sequence, such as .B \en and .BR \ee , and the octal expression, such as .BR \eooo . In case of binding the internal command of .BR fd , you can the command identifier as it is. When you want to define the internal command with some arguments or define the command in the macro representation, you should describe the string quoted with \fB"\fP. If .I com2 is not omitted, .I com2 is executed when the cursor position indicates a directory. When the key .I c is the function key of F1-F20, if you describe .I comment prefixed with .B : trailing the command description, you can change the display of associated part in the function line into .IR comment . However, note that, with the key binding for the control key, the configuration in the edit mode described below is prior to the key binding. If both .I com1 and .I com2 are omitted, the registration of key binding for the key .I c is deleted. .IP "\fBbreak\fP [\fIn\fR]" Exit from the loop, it is used in the .B for statement and so on. If .I n is specified, it breaks .I n levels from the loop. .IP "\fBbrowse\fP [\fB\-@\fP \fIfile\fR]" .PD 0 .IP "\fBbrowse\fP \fIcom\fR [\fB\-ftbie\fP \fIarg\fR] [\fB\-p\fP \fIcom2\fR] [\fB\-dn\fP {\fBnoprep\fP,\fBloop\fP}] .\|.\|." .PD Execute .I com the command, and invoke the archive browser who receives its output. You should the macro representation quoted with \fB"\fP as .IR com . .BR \-f , .BR \-t , .BR \-b , .B \-i and .B \-e options are the same as the one for .B launch the builtin command. In case that multiple .IR com s are specified, the next .I com the command is executed one after another when you select each files in the archive browser, and the formats and patterns described after each .I com the command are adopted. In order to return to the previous level of archive browser, you should select the file named as .B .\|. or push the key .RB [ Bs ]. Or you can use .B QUIT_SYSTEM the command to escape from all of the archive browsers invoked by .BR browse . You must describe .B \-f option, except for the last .I com the command. When the last .I com has no .B \-f option, the command has been just executed instead of invoking an archive browser, and then will return to the previous archive browser when it is done. When you specify .B \-p option, the execution of .I com2 the command precedes the execution of the next .I com the command when you select a file. While .I com is executed in the sub shell for a pipeline, .I com2 is executed in the current shell to inherit the values of internal variables set in this command after .I com2 has been done. The filenames which is selected toward this level of archive browser are held in positional parameters sequentially, and the last selected filename is held in .BR $1 . These parameters will be newly set whenever you select a file, so that they are reset in sequential order when you select the next file even if you replace them with .B set or .B shift the builtin command. .B \-d and .B \-n options specify a control if the selected file is a directory or not respectively. When you specify .BR noprep , .I com2 specified by .B \-p option is not executed. When you specify .BR loop , you don't step the next .I com the command but the same .I com the command again. And when you think troublesome to describe too many arguments for .BR browse , you can specify .I file the file in which some arguments are described with .B \-@ option. You can describe .B \-@ option in any place of arguments, the arguments described in .I file are inserted in the place where .B \-@ is described. If you specify .B \- as .IR file , arguments are read from the standard input instead of the file. You should describe arguments in .I file with spaces or newlines as separator. The null line and the line started with .B # will be ignored. When you describe .B \-@ option in .IR file , the argument file is referred recursively. .IP "\fBbuiltin\fP \fIarg\fR .\|.\|." Execute .I arg as a simple builtin command. When the same named function is defined, the function will not be executed. .IP "\fBcd\fP [\fB\-LP\fP] [\fIdir\fR]" .PD 0 .IP "\fBchdir\fP [\fB\-LP\fP] [\fIdir\fR]" .PD Change the current directory in .B fd to .IR dir . If .I dir is omitted, it moves to the directory indicated by .B HOME the internal variable. If you specify the pathname as "\fB.\fP", "\fB?\fP", "\fB\-\fP", "\fB@\fP", it behaves like as .BR LOG_DIR . If .B \-L is specified, the logical pathname following symbolic links is used. If .B \-P is specified, the physical pathname following no symbolic links is used. Otherwise, the .B physical option for .B set the builtin command is effective. .IP "\fBcheckid\fP [\fIfile\fR .\|.\|.]" Calculate the unique ID of the specified file and display it, according to the MD5 algorithm in RFC1321. When you specify multiple .IR file s, the IDs of all specified files are calculated and displayed. When you specify nothing, the ID of running .B fd itself is displayed. Since this algorithm is guaranteed to be secure, it is available to confirm the identity of files. .IP "\fBcls\fP" Clear the screen. .IP "\fBcommand\fP [\fB\-p\fP | \fB\-v\fP | \fB\-V\fP] \fIarg\fR .\|.\|." Execute .I arg as a simple command. When the same named function is defined, the function will not be executed. If .B \-p is specified, the default value of .B PATH is used to search the path. If .B \-v is specified, the absolute path for .I arg is displayed instead of executing .IR arg . In this case, .I arg the builtin command will cause simply its name. If .B \-V is specified, verbose description for .I arg is displayed as same as .BR type . .IP "\fBcontinue\fP \fIn\fR" Resume the next iteration in the loop, it is used in the .B for statement and so on. If .I n is specified, it resumes the next iteration in the loop .I n - 1 levels out of the loop. .IP "\fBcopy\fP [\fB\-ABVY\-Y\fP] \fIsrc\fR [\fB\-AB\fP] [\fB\+\fP \fIsrc2\fR [\fB\-AB\fP] [\fB\+\fP .\|.\|.]] [\fIdest\fR [\fB\-AB\fP]]" Copy the file indicated by .I src into the file or the directory indicated by .IR dest . When .I dest indicates a directory, the filename in the destination is .IR src . If .I dest is omitted, it is copied into the current directory. You can specify multiple source files by describing to separate them with .BR \+ , or by using the wildcard. When you separate them with .BR \+ , those files are concatenated and copied. When you use the wildcard, they are copied one by one in case that the destination is a directory, and they are concatenated in case that the destination is a file. When you specify .BR \-A , it is treated as the ASCII text file. When you specify .BR \-B , it is treated as the binary file. When you specify .BR \-V , it is verified to copy. When you specify .BR \-Y , it doesn't prompts for confirming to overwrite into the destination. When you specify .BR \-\-Y , it prompts for confirmation before overwriting into the destination. (MS-DOS version requires to use .B / instead of .B \- as an option prefix for compatibility with COMMAND.COM.) .IP "\fBdel\fP [\fB\-P\fP] \fIfile\fR" .PD 0 .IP "\fBerase\fP [\fB\-P\fP] \fIfile\fR" .PD Delete the files indicated by .IR file . You can specify multiple files by using wildcard. When you specify .BR \-P , it prompts for confirmation before deleting files. (MS-DOS version requires to use .B / instead of .B \- as an option prefix for compatibility with COMMAND.COM.) .IP "\fBdir\fP [\fB\-\fP[\fB\-\fP]\fBPWSBLV4\fP] [\fB\-A\fP[\fBDRHSA\-\fP]] [\fB\-O\fP[\fBNSEDGA\-\fP]] [\fIdir\fR]" List files and sub directories in the directory indicated by .IR dir . If .I dir is omitted, the information in the current directory is listed. When you specify .BR \-P , it prompts for every screen. When you specify .BR \-W , it is listed in the wide view. When you specify .BR \-A , it lists only the files which have the attribute indicated by the trailing character. .RS 20 .ta 0.3i 2i 2.3i .nf \fBD\fP directory \fBR\fP read only file \fBH\fP hidden file \fBS\fP system file \fBA\fP ready to archive \fB\-\fP except it .fi .RE .RS When you specify .BR \-O , it sorts with the sorted type indicated by the trailing character. .RE .RS 20 .ta 0.3i 2i 2.3i .nf \fBN\fP by name \fBS\fP by size \fBE\fP by extension \fBD\fP by date & time \fBG\fP directory first \fBA\fP by last access time \fB\-\fP reverse order .fi .RE .RS When you specify .BR \-S , it lists files in all sub directories. When you specify .BR \-B , it displays only names of files and directories. When you specify .BR \-L , it uses lowercase. When you specify .BR \-V , it lists the verbose information. When you specify .BR \-4 , it displays year with 4 digits. And you can prefix .B \- to any option letter to override the option. (MS-DOS version requires to use .B / instead of .B \- as an option prefix for compatibility with COMMAND.COM.) .RE .IP "\fBdirs\fP" Display the list of the current directory stack. .B Pushd and .B popd the builtin command can load/unload directories onto the directory stack. .IP "\fBdisown\fP [\fIjob\fR]" Remove the job specified with .I job from the shell control. The job to be .BR disown ed cannot be controlled by .BR jobs , .B fg and .BR bg . If invoked as a login shell, any jobs not to be .BR disown ed will be forced to exit when the shell finish. .B (UNIX) If .I job is omitted, the current job is removed from the shell control. .IP "\fBdtype\fP \fIfile\fR" Display the contents of the file indicated by .IR file . .IP "\fBecho\fP [\fB\-nN\fP] [\fIarg\fR .\|.\|.]" Echo .I arg to the standard output. When you don't specify .BR \-n , newline is added to output trailing after .IR arg . When you specify .BR \-N , the outputted newline becomes CR-NL (\er\en). See .BR echo (1) for details. .IP "\fBenable\fP [\fB\-n\fP] [\fIarg\fR .\|.\|.]" Enable .I arg as a builtin command. When you specify .BR \-n , it is disabled. If .I arg is omitted, all of the enabled or disabled builtin commands is listed. .IP "\fBeval\fP [\fIarg\fR .\|.\|.]" Evaluate .I arg and execute the results. .IP "\fBevalmacro\fP [\fIarg\fR .\|.\|.]" Evaluate parameter macros included in .I arg and execute the results. Since .B eval doesn't evaluate any parameter macro, you should choose them according to uses. When in the function, you cannot use any parameter macro, then you need this command to extract parameter macros. .IP "\fBexec\fP [\fIcom\fR [\fIarg .\|.\|.\fR]]" Execute .I com in place of the execution of .BR fd . You can specify .I arg as arguments of .IR com . .IP "\fBexit\fP [\fIn\fR]" Exit from .BR fd . When you specify .IR n , it exits with the exit status .IR n . .IP "\fBexport\fP [\fINAME\fR[\fB=\fP[\fIvalue\fR]] .\|.\|.]" Mark .I NAME the internal variable to be inherited to child processes as the environment variable. Since then, the definition of .I NAME can be referred in any child process. When you .B export the undefined internal variable, it doesn't become the environment variable until the internal variable is defined. When you want to define the value at the same time, you should specify .IR value . If only .B = is specified and .I value is omitted, the value of .I NAME the environment variable is defined as a null. If no argument is specified, all of the .BR export ed environment variables is listed. When you want to delete the definition of the environment variable, you can use .B unset the builtin command. .IP "\fBfalse\fP" Only return with a .B 1 exit status. .IP "\fBfc\fP [\fB\-l\fP | \fB\-s\fP [\fIold\fR\fB=\fP\fInew\fR .\|.\|.]] [\fB\-nr \fP] [\fB\-e\fP \fIeditor\fR] [\fIfirst\fR [\fIlast\fR]]" List or edit command histories. .I First and .I last select the range of command histories. This specification can be described as a numeric value or a string. A positive value means the command history number, and a negative value means the command history which has the history number as the current history number minus the value. A string mean the command history which starts with the string. If .B \-n is specified, command histories are listed without their history numbers. If .B \-r is specified, command histories are listed in reverse order. If .B \-e is specified, the editor named by .I editor is used to edit command histories, otherwise the editor specified by .B FCEDIT or .B EDITOR the internal variable is used. When .B \-l is specified, selected command histories are listed to the standard output. In this case, omitting .I last means to specify the current history number, and also omitting .I first means to specify .BR \-16 . When .B \-s is specified, the command history selected by .I first is executed immediately. In this case, omitting .I first means to specify the current history number. The first occurrence of the string .I old in the command history will be replaced by the string .I new before execution. When neither .B \-l nor .B \-s is not specified, selected command histories are edited, and then each edited commands are executed one by one with display in the standard output. In this case, omitting .I last means to specify .IR first , and also omitting .I first means to specify the current history number for both. .IP "\fBfd\fP [\fIdirectory\fR [\fIdirectory2\fR]]" Invoke .B fd from the internal shell. If you specify .IR directory , the current directory is moved to the directory initially. If you specify .IR directory2 , the split window mode is invoked, and the current directory of the supplemental window is moved to the directory. You can return to the internal shell by .BR QUIT_SYSTEM . It is effective only when it is invoked as .BR fdsh . .IP "\fBfg\fP [\fIjob\fR]" Continue the execution of the job specified with .I job in the foreground. The following format is available to specify a job. .B (UNIX) .RS 20 .ta 0.5i .nf \fB%\fP \fB%+\fP the current job \fB%\-\fP the previous job \fB%\fP\fIn\fR the job with job number \fIn\fR \fB%\fP\fIstr\fR the job whose command line starts with \fIstr\fR .fi .RE .RS But, you must describe these .B % in the command line of .B EXECUTE_SH as the duplicated expression, such as .BR %% , for the reason of the parameter macro function described below. If .I job is omitted, the current job is continued in the foreground. .RE .IP "\fBgetfreq\fP [\fIfile\fR]" Output the contents of the translation frequency file, specified by .IR file , to the standard output for the users Kana-Kanji translation learning. The output format provides one record per line, which consists of "Yomi-Gana", "word" and "frequency" separated by tab. You can use this output as the argument of .B setfreq to import the frequency information. If .I file is omitted, it is regarded as the translation frequency file specified by .B FREQFILE the internal variable. .B (UNIX) .IP "\fBgetkey\fP [\fInum\fR]" Get the key code sequence for the pushed key. It prompts after executed, and displays the key code sequence for the key which you push to specify. It continues until you push any key .I num times. When .I num is more than .B 1 time, you can stop it with pushing .RB [ Space ]. When .I num is .B 0 time, it continues forever until .RB [ Space ] is pushed. The displayed sequence can be used as the key code sequence for .B keymap command. .B (UNIX) If .I num is omitted, it is regarded as .B 1 time is specified. .IP "\fBgetopts\fP \fIoptstr\fR \fINAME\fR [\fIarg .\|.\|.\fR]" Used to parse the optional parameters from a sequence of .IR arg . The valid characters as option is described in .IR optstr . An option character which needs an argument is described with following .B : in .IR optstr . Each time .B getopts is invoked, the new option character parsed from .I arg is substituted for .I NAME the internal variable. When the option has an argument, the argument is substituted for .B OPTARG the internal variable. And the index of the next parameter is substituted for .B OPTIND the internal variable every time. The value of .B OPTIND is initialized to .B 1 whenever the shell is invoked, another parsing of option parameters needs initializing .B OPTIND to .B 1 manually. If .I arg is omitted, positional parameters are parsed to the optional parameters. When the end of option is encountered, .B getopts will exit with the value of .BR 1 . In this case, .B ? is substituted for .IR NAME . When an option character which is not included in .I optstr is found, an error message is written to the standard error, then .B ? is substituted for .I NAME and .B OPTARG is unset. But, if .B OPTARG is started with .BR : , no error message is written, and the found option character is substituted for .B OPTARG instead. When no argument is found with the option character which needs an argument, an error message is written to the standard error, then .B ? is substituted for .I NAME and .B OPTARG is unset. But, if .B OPTARG is started with .BR : , no error message is written, then the found option character is substituted for .B OPTARG instead, and .B : is substituted for .IR NAME . .IP "\fBhash\fP [\fB\-r\fP \(bv \fIcom\fR .\|.\|.]" Search the absolute path for .I com referring to .BR PATH , which indicates the search path when the external command is executed, and register the result in the hash table. When you specify .B \-r instead of .IR com , all the memorized hash table is discarded. If .I com is omitted, the hash table information is listed. .BR hits , .BR cost , .B command indicate the number of times the command has been executed, the measure of the work required to search it in the search path, and the absolute path for the command, respectively. When the command is searched in a relative directory, it is necessary to re-search whenever the current directory is moved, because it is not registered as the absolute path. In such command, .B \(** trailing .B hits is displayed. .IP "\fBhistory\fP [\fIn\fR]" List the last .I n command histories with the history number. If .I n is omitted, all of the memorized command histories is listed. .IP "\fBjobs\fP" List the running jobs. .B (UNIX) .IP "\fBkconv\fP [\fB\-i\fP \fIin\fR] [\fB\-o\fP \fIout\fR] [\fIinfile\fR [\fIoutfile\fR]]" Read from .I infile and convert its Kanji code from .I in to .IR out , and output to .IR outfile . In .I in and .IR out , you can specify the string which used in .B FNAMEKCODE the internal variable described below. If each of them is omitted, it is regarded as that the Kanji code specified in compile is specified. If .I outfile is omitted, it outputs to the standard output. If also .I infile is omitted, it reads from the standard input. .B (UNIX) .IP "\fBkeymap\fP [\fIc\fR [\fIstr\fR]]" Map the sequence .I str as key code of the special key .IR c . You can use only the following identifiers as .IR c . .B (UNIX) .RS 20 .ta 0.9i 2i 2.9i .nf \fBUP\fP Up \fBDOWN\fP Down \fBRIGHT\fP Right \fBLEFT\fP Left \fBBEG\fP Begin \fBEOL\fP Eol \fBHOME\fP Home \fBEND\fP End \fBINS\fP Insert \fBDEL\fP Delete \fBINSLIN\fP InsLine \fBDELLIN\fP DelLine \fBPPAGE\fP PageUp \fBNPAGE\fP PageDown \fBENTER\fP Enter \fBBS\fP Bs \fBCLR\fP Clear \fBHELP\fP Help \fBPLUS\fP + (tenkey) \fBMINUS\fP - (tenkey) \fBASTER\fP \(** (tenkey) \fBSLASH\fP / (tenkey) \fBCOMMA\fP , (tenkey) \fBDOT\fP . (tenkey) \fBEQUAL\fP = (tenkey) \fBRET\fP Return (tenkey) \fBTK0\fP.\|.\fBTK9\fP 0-9 (tenkey) \fBF1\fP.\|.\|.\fBF20\fP function key .fi .RE .RS You can use the escape sequence in the key code sequence, such as .B \en =0x0a and .B \ee =0x1b. You can also use the octal expression, such as .BR \eooo . You can describe the control character prefixing .BR ^ , such as ^A. .B ^ itself can be described as .BR \e^ . If .I str is omitted, the key code sequence for .I c is displayed. If both .I str and .I c are omitted, all of the mappings for special keys is listed. When you specify .I str as \fB"\|"\fP, the key code mapping for .I c is canceled. .RE .IP "\fBkill\fP [\fB\-l\fP \(bv \fB\-\fP\fIsignal\fR] [\fIpid\fR \(bv \fIjob\fR .\|.\|.]" Send the signal indicated by .I signal to the process indicated by the process number .I pid or to the job indicated by .IR job . .I Signal is described as a numeric value or a signal name. If .I signal is omitted, .B SIGTERM is send. When you specify .BR \-l , it lists the signal names which can be used as .I signal instead of sending a signal. .IP "\fBlaunch\fP \fIext\fR [\fIcom\fR [\fIformat\fR [\fItop\fR \fIbottom\fR]]]" .PD 0 .IP "\fBlaunch\fP \fIext\fR \fIcom\fR [\fB\-f\fP \fIformat\fR] [\fB\-t\fP \fItop\fR\] [\fB\-b\fP \fIbottom\fR] [\fB\-ie\fP \fIpatt\fR\]" .PD Register the behavior for .I ext the extension as the launcher. You should the macro representation quoted with \fB"\fP as .IR com . When you register an archive browser, you should describe the command to list the archived files as .IR com , and describe the format of the list as .IR format . When you describe .I top and .IR bottom , you can specify unnecessary lines in the list as the number of lines from the top/bottom line. When .I ext starts with .BR / , uppercase/lowercase is ignored in the comparison of any extension. If .I com is omitted, the launcher registration for .I ext is canceled. When you register an archive browser, you can use the latter form to describe more detailed control. You can specify multiple formats as candidates with multiple .B \-f options. These candidates for format are compared in order of appearance, if no one is matched completely then the nearest one is adopted. .B \-i and .B \-e options specify .I patt the pattern for the line to be ignored and for the line to be treated as error respectively. When the list includes unnecessary lines you can specify also .I top and .IR bottom , but you must specify lines except top/bottom lines with .B \-i option. In case that a failure to unpack files in the archive file causes outputting some strings, you can specify the strings with .B \-e option. .B \-i and .B \-e options can specify multiple patterns, and they are effective if one of them is matched. And you can use a wildcard in the description for each .I patt the pattern. .IP "\fBmd\fP \fIdir\fR" Create the directory .IR dir . .IP "\fBmkdir\fP \fIdir\fR" Same as .BR md . .B (DOS) .IP "\fBnewgrp\fP [\fIarg .\|.\|.\fR]" Execute .BR newgrp (1) in place of the execution of .BR fd . You can specify .I arg as arguments of .BR newgrp (1). See .BR newgrp (1) for details. .B (UNIX) .IP "\fBlogin\fP [\fIarg .\|.\|.\fR]" Execute .BR login (1) in place of the execution of .BR fd . You can specify .I arg as arguments of .BR login (1). See .BR login (1) for details. .B (UNIX) .IP "\fBlogout\fP [\fIn\fR]" Exit from a login shell. When you specify .IR n , it exits with the exit status .IR n . .IP "\fBpopd\fP" Unload the top directory onto the directory stack, and change the current directory in .B fd to the directory. This command is failed when the directory stack is empty. .IP "\fBprintarch\fP [\fIext\fR]" Print the archiver commands registered for the archive file which has .I ext the extension. If .I ext is omitted, all of the registered archiver commands is listed. .IP "\fBprintbind\fP [\fIc\fR]" Print the command binded to the key .IR c . You can specify the key as well as .BR bind . If .I c is omitted, all of the registered key bindings is listed, which is defined not as the internal command but as the command macro. The key bindings of internal commands can be referred in .BR HELP_MESSAGE . .IP "\fBprintdrv\fP [\fIc\fR]" Print the device file and the number of heads/sectors/cylinders of the floppy drive registered for the drive name .IR c . .B (UNIX) If .I c is omitted, all of the registered floppy drives is listed. .IP "\fBprintlaunch\fP [\fIext\fR]" Print the command macro registered as the launcher for .I ext the extension. When it is registered as the archive browser, the format for listing is also printed. If .I ext is omitted, all of the registered launchers is listed. .IP "\fBprintroman\fP [\fIroman\fR]" Print the Roman-Kana translation table for the Kana-Kanji IME mode. It means printing the Japanese string bound for .I roman the Roman string. .B (UNIX) If .I roman is omitted, all the registered Roman-Kana translation table is listed. .IP "\fBpushd\fP [\fIdir\fR]" Load the current directory onto the directory stack, and change the current directory in .B fd to .IR dir . If you specify the pathname as "\fB.\fP", "\fB?\fP", "\fB\-\fP", "\fB@\fP", it behaves like as .BR LOG_DIR . The .B physical option for .B set the builtin command is effective for symbolic links. If .I dir is omitted, change the current directory to the top directory of the directory stack, and replace it with the current directory. In this case, this command is failed when the directory stack is empty. .IP "\fBpwd\fP [\fB\-LP\fP]" Display the current directory with the absolute representation. If .B \-L is specified, the logical pathname following symbolic links is displayed. If .B \-P is specified, the physical pathname following no symbolic links is displayed. Otherwise, the .B physical option for .B set the builtin command is effective. .IP "\fBread\fP [\fB-N\fP] [\fINAME .\|.\|.\fR]" Read one line from the standard input and substitute that string for .I NAME the internal variable. The inputted string is separated with .B IFS into some words. When multiple .IR NAME s are specified, words are substituted one by one from the first of line, and all the rest are substituted for the last .IR NAME . When the number of words in inputted string is less than the number of .IR NAME , a null is substituted for the rest of .IR NAME . If .B \-N is specified, the newline of the line to be read is regarded as CR-NL (\er\en). .IP "\fBreadline\fP [\fIprompt\fR]" Read one line from the terminal input and output that string to the standard output. When .I prompt is specified, the string is displayed on the beginning of input line. This command differs from .B read the builtin command in the terminal input and the line editing. You cannot use the history as one of the line editing, but can use the completion for a pathname. .IP "\fBreadonly\fP [\fINAME\fR[\fB=\fP[\fIvalue\fR]] .\|.\|.]" Mark .I NAME the internal variable to be readonly. Since then, you cannot change the value of .IR NAME . When you want to define the value at the same time, you should specify .IR value . If only .B = is specified and .I value is omitted, the value of .I NAME the internal variable is defined as a null. If no argument is specified, all of the readonly internal variables is listed. .IP "\fBrd\fP \fIdir\fR" Delete the directory .IR dir . You cannot delete the non-empty directory. .IP "\fBrmdir\fP \fIdir\fR" Same as .BR rd . .B (DOS) .IP "\fBren\fP \fIold\fR \fInew\fR" .PD 0 .IP "\fBrename\fP \fIold\fR \fInew\fR" .PD Rename the filename or the directory name .I old into .IR new . You can specify the wildcard in .I old and .I new to rename the multiple filenames all together. .IP "\fBrem\fP [\fIarg\fR .\|.\|.]" No effect, same as .BR : . .IP "\fBreturn\fP [\fIn\fR]" Return from a function with the return value specified by .IR n . If .I n is omitted, the return value is the exit status of the last executed command. It cannot be used out of a function. .IP "\fBsavetty\fP [\fB-n\fP]" Save the current terminal settings. The saved settings will be restored when .B EXECUTE_SH is executed later. In case that you change terminal settings with .BR stty (1) and so on, you should save the settings with this command not to reset settings with the next execution of .BR EXECUTE_SH . If you change terminal settings and execute this command not in the same command line, you should notice that this command will save the reset settings. If .B \-n is specified, the saved settings will be cleared. .B (UNIX) .IP "\fBset\fP [\fB\-\-abCefhkmntuvx\fP] [\fB\-o\fP \fIoption\fR] [\fIarg\fR .\|.\|.]" List internal variables and functions, without any argument. When you specify .IR arg , .I arg is substituted for the positional parameter .BR $1 , .BR $2 , \&.\|.\|., .BI $ n in order. When you specify any option, each option means the following. When you use .B \+ instead of .BR \- , the option parameter turns off each option. .RS .PD 0 .IP "\fB\-a\fP" 5 .B Export any internal variable automatically when it is defined. .IP "\fB\-b\fP" When a background job has been terminated, its status report will be displayed immediately. there is no effect when the job control is not enabled. .IP "\fB\-C\fP" Prevent overwriting to any existent files in redirection. .IP "\fB\-e\fP" Exit immediately when any command returns the exit status except .BR 0 . .IP "\fB\-f\fP" Disable the wildcard expansion. .IP "\fB\-h\fP" Register any command to the hash table just before it is executed. The commands used in a function are read when it is defined, and are registered to the hash table. The command hash itself is always valid, if .B \-h option is set or not. .IP "\fB\-k\fP" Treat all .IR NAME\fB=\fP [ value ] formed arguments as the variable definition, while they are not placed on the beginning of command line string. .IP "\fB\-m\fP" Enable the job control. This option is valid by default. .B (UNIX) .IP "\fB\-n\fP" Read command inputs but don't execute them. .IP "\fB\-o\fP \fIoption\fR" The following identifiers are valid in .IR option . .RS .PD 0 .IP "\fBallexport\fP" 5 Same as .BR \-a . .IP "\fBautosavetty\fP" Same as .BR \-S . .IP "\fBemacs\fP" Same as .BR EDITMODE=emacs . .IP "\fBerrexit\fP" Same as .BR \-e . .IP "\fBhashahead\fP" Same as .BR \-h . .IP "\fBignoreeof\fP" Any .B EOF will not terminate the interactive shell. .IP "\fBkeyword\fP" Same as .BR \-k . .IP "\fBmonitor\fP" Same as .BR \-m . .IP "\fBnoclobber\fP" Same as .BR \-C . .IP "\fBnoexec\fP" Same as .BR \-n . .IP "\fBnoglob\fP" Same as .BR \-f . .IP "\fBnotify\fP" Same as .BR \-b . .IP "\fBnounset\fP" Same as .BR \-u . .IP "\fBonecmd\fP" Same as .BR \-t . .IP "\fBphysical\fP" Same as .BR \-P . .IP "\fBptyshell\fP" Same as .BR \-T . .IP "\fBverbose\fP" Same as .BR \-v . .IP "\fBvi\fP" Same as .BR EDITMODE=vi . .IP "\fBxtrace\fP" Same as .BR \-x . .RE .RS If .I option is omitted, the values of the current options are displayed. .RE .IP "\fB\-P\fP" .B Cd and .B pwd the builtin command use the physical directory structure instead of the logical directory structure following symbolic links. .IP "\fB\-S\fP" Execute .B savetty the builtin command automatically whenever any command line is processed. The terminal settings will be saved absolutely unless you operate the terminal settings intentionally, so that you should manually adjust the terminal settings saved accidentally. .B (UNIX) .IP "\fB\-T\fP" Invoke .B fdsh as the pseudo terminal. You cannot invoke any more pseudo terminals in this mode. It is effective only if you specify it as the startup option or in the initial configuration file. It is effective only if you specify it as the startup option, when the shell is executed as the non-interactive shell. It is just ignored when invoked as .BR fd . .B (UNIX) .IP "\fB\-t\fP" Exit immediately after executing the current command input. .IP "\fB\-u\fP" Treat the reference of undefined variables as an error. .IP "\fB\-v\fP" Display the command inputs whenever they are read. .IP "\fB\-x\fP" Display the command strings whenever they are executed. .IP "\fB\-\-\fP" Indicate the end of options. No flag is changed. .PD .RE .IP "\fBsetdrv\fP \fIc\fR \fIdevice\fR \fIhd\fR \fIsc\fR \fIcl\fR" Specify the device file indicated by .I device for the MS-DOS floppy drive named as .IR c . At the same time, .IR hd , .IR sc , .I cl are specified as the number of heads(sides)/sectors/cylinders(tracks) in the format which is treated in the driver of .IR device . In special case, when you want to treat the 640KB2DD(hd=2/sc=8/cl=80) floppy disk with the driver which can treat only the 820KB2DD(hd=2/sc=9/cl=80) floppy disk, you should specify the value adding .B 100 (108) as the value of .IR sc . .B (UNIX) On the PC-UNIX environment which is worked on PC, specifying the string .B HDD or .B HDD98 instead of .IR hd , .IR sc , .IR cl , can register the MS-DOS partition on the hard disk for the PC/AT compatible machine or PC-9800 series. In this case, You should describe the device file as the device name prepared per the physical drive unit rather than the device name prepared per the partition (slice). The MS-DOS partitions included in the drive unit are automatically expanded to the drive name after the drive name .IR c . When no MS-DOS partition is included in the specified drive unit, this command is ignored. You can confirm what drive name is valid by .B printdrv command. But any hard disk is registered as readonly, for security. .IP "\fBsetfreq\fP [\fIfile\fR]" Append the frequency information inputted from the standard input to the translation frequency file, specified by .IR file , for the users Kana-Kanji translation learning. The input format is based on the output format of .BR getfreq . If you want to replace, rather than to append, you must remove the translation frequency file in advance. If .I file is omitted, it is regarded as the translation frequency file specified by .B FREQFILE the internal variable. .B (UNIX) .IP "\fBsetroman\fP [\fB-c\fP] [\fB-r\fP] [\fB-f\fP \fIfile\fR] [\fIroman\fR [\fIkanji\fR]]" Setup the Roman-Kana translation table for the Kana-Kanji IME mode. It means binding .I kanji the Japanese string to .I roman the Roman string. The part over .B 4 characters of .IR roman , the string which consists of 1 byte characters only, will be ignored. The part over .B 2 characters of .IR kanji , the string which consists of multibyte characters or 1 byte characters, will be ignored. In this case, a multibyte character is counted as 1 character as well as a 1 byte character. .B (UNIX) If .I kanji is omitted, the registered binding of the Roman-Kana translation table for .I roman the Roman string will be deleted. When you specify .BR \-c , the whole Roman-Kana translation table will be cleared to be empty. When you specify .BR \-r , all the registered bindings will be reset to restore the Roman-Kana translation table. When you specify .BR \-f , the file specified by .I file will be read as bindings of the Roman-Kana translation table. In this case, a pair of .I roman and .IR kanji , which is separated by spaces, must be described in each line of .IR file . You can also use the file which contains the output of .BR printroman . .IP "\fBshift\fP [\fIn\fR]" Rename the positional parameters from .BI $ n\+1 into ones from .B $1 in order. The original positional parameters from .B $1 to .BI $ n are discarded. If .I n is omitted, it is regard as .B 1 is specified. .IP "\fBsocketinfo\fP [\fB-apAP\fP] [\fIfd\fR]" If the file descriptor specified by .I fd is a socket, the IP address and the TCP port number of the connected remote host, and the IP address and the TCP port number of the connected local host, are outputted to the standard output. If .I fd is not a socket, this command will be failed. .B (UNIX) If .I fd is omitted, it is regarded as the standard input is specified. If .B \-a is specified, only the IP address of the remote host will be outputted. If .B \-p is specified, only the TCP port number of the remote host will be outputted. If .B \-A is specified, only the IP address of the local host will be outputted. If .B \-P is specified, only the TCP port number of the local host will be outputted. .IP "\fBtest\fP [\fIexpr\fR]" .PD 0 .IP "\fB[\fP \fIexpr\fR \fB]\fP" .PD Evaluate the conditional expression .IR expr . See .BR test (1) for details. .IP "\fBtimes\fP" Display the accumulated user and system time for the processes which has so far been executed. .IP "\fBtrap\fP [\fIcom\fR] [\fIn\fR .\|.\|.]" Read and execute the command .I com when .B fd receives the signal .IR n . If .I com is omitted, the trap for the signal is reset. When you specify .I com as a null, the signal ignored. When you specify .I n as .BR 0 , the command .I com is executed on exit. If both .I com and .I n are omitted, all of the registered traps is listed. .IP "\fBtrue\fP" Only return with a .B 0 exit status. .IP "\fBtype\fP [\fIcom\fR .\|.\|.]" Display how each .I com would be treated when it is used as a command name. .IP "\fBulimit\fP [\fB\-SH\fP] [\fB\-a\fP \(bv \fB\-cdflmnstv\fP] \fIn\fR" Set the resource limits for .B fd and its child processes to the value indicated by .IR n . You can use the string .B unlimited or the numeric value in .IR n , .B unlimited means the maximum specifiable value. .B (UNIX) When you specify .BR \-H , a hard limit is set. When you specify .BR \-S , a soft limit is set. When you don't specify neither of them, both limits are set. If .I n is omitted, the current limit is displayed. When you specify .BR \-a , all of the resource limits is displayed. When you specify the following options, the each resource limit is individually set or displayed. If no option is specified, it is regarded as .B \-f is specified. .RS .PD 0 .IP "\fB\-c\fP" 5 maximum core file size (in blocks) .IP "\fB\-d\fP" maximum size of data segment (in KB) .IP "\fB\-f\fP" maximum file size (in blocks) .IP "\fB\-l\fP" maximum size of locked in memory (in KB) .IP "\fB\-m\fP" maximum size of resident set (in KB) .IP "\fB\-n\fP" maximum number of open file files .IP "\fB\-s\fP" maximum size of stack segment (in KB) .IP "\fB\-t\fP" maximum CPU time (in seconds) .IP "\fB\-v\fP" maximum size of virtual memory (in KB) .PD .RE .IP "\fBumask\fP [\fInnn\fR]" Set the file creation mask to .IR nnn . If .I nnn is omitted, the current value of the file creation mask is displayed. See .BR umask (2) for details. .IP "\fBunalias\fP \fIname\fR" Cancel the definition of the alias .IR name . You can use the wildcard in .IR name , in this case, all of the matched alias definitions is canceled. When you specify "\(**", all of the alias definitions is invalid. .IP "\fBunset\fP [\fINAME\fR .\|.\|.]" Delete the defined internal variable or function for each .IR NAME . But the following variable definition cannot be deleted. .RS 20 .ta 1i 2i 3i .nf .ft B PATH PS1 PS2 IFS MAILCHECK PPID .ft R .fi .RE .IP "\fBunsetdrv\fP \fIc\fR \fIdevice\fR \fIhd\fR \fIsc\fR \fIcl\fR" Delete the registered floppy drive. Only the registration with which all of .IR device , .IR hd , .IR sc , .I cl is corresponded is deleted, then you should confirm to delete very well. .B (UNIX) When it is registered as .B HDD or .B HDD98 in .BR setdrv , you should describe .B HDD or .B HDD98 instead of .IR hd , .IR sc , .IR cl . .IP "\fBwait\fP [\fIpid\fR \(bv \fIjob\fR]" Wait for the process indicated by .I pid or for the job indicated by .IR job , and return its exit status. If both .I pid and .I job are omitted, all running jobs are waited. .B (UNIX) .IP "\fByesno\fP [\fIprompt\fR]" Wait for a input of .B y or .B n from the terminal, and then return .B 0 when .B y is inputted, return .B 255 when .B n is inputted. Instead of input of .B y or .BR n , you can select a character from displayed .B [Y/N] with cursor keys and push .RB [ Return ] to be regarded as an input of the selected character. An input of .RB [ Space ] or .RB [ Esc ] means the input of .BR n . When .I prompt is specified, the string is displayed before .BR [Y/N] . .IP "\fICOMMAND\fR [\fIarg\fR]" Execute the internal command .I COMMAND of .BR fd . You can describe each command identifier in .IR COMMAND . The following internal commands can take a parameter argument .IR arg . .RS .PD 0 .IP "\fBCUR_UP\fP" 15 .IP "\fBCUR_DOWN\fP" .IP "\fBCUR_RIGHT\fP" .IP "\fBCUR_LEFT\fP" .IP "\fBROLL_UP\fP" .IP "\fBROLL_DOWN\fP" .IP "\fBWIDEN_WINDOW\fP" .IP "\fBNARROW_WINDOW\fP" The number of lines, columns, or pages. .IP "\fBRENAME_FILE\fP" .IP "\fBPACK_FILE\fP" .IP "\fBBACKUP_TAPE\fP" The filename. .IP "\fBLOG_DIR\fP" .IP "\fBMAKE_DIR\fP" .IP "\fBINFO_FILESYS\fP" .IP "\fBUNPACK_FILE\fP" The directory name. .IP "\fBEXECUTE_SH\fP" The command string. .IP "\fBMARK_FIND\fP" .IP "\fBFIND_FILE\fP" .IP "\fBFIND_DIR\fP" The wildcard string. .IP "\fBMARK_ALL\fP" .B 0 will reset the mark of all files, the other will mark all files. .IP "\fBSORT_DIR\fP" The number substituted for .B SORTTYPE the internal variable. .IP "\fBEDIT_CONFIG\fP" The name of internal variable to be edited. .PD .RE .PP .B ~ and .B $ in the previous registration string are expanded. But these expansions are restrained in the string quoted with .B ' instead of \fB"\fP. .SS Tree Screen Since representing the whole file system in tree structure takes too many time, only the directories which are direct ancestors and the direct sub directories are displayed, first in the tree screen. In the directories which are direct ancestors, the other sub directories (if exists) are grouped as "\fB.\|.\|.\fP". These grouped sub directories will be expanded automatically when a cursor is placed on its position. The sub directories which are not expanded yet are represented with .RB ' > ' trailing the filename, which shows as they are. Such directory is never expanded until it is required to expand explicitly, then you should expand it by the following key inputs before moving to any hidden sub directory. In the tree screen, the following key inputs are available. .PD 0 .RS .IP "\fBUp\fP, \fBDown\fP" 10 Move a cursor. .IP "\fBRight\fP" Expand the sub directory on the cursor position. .IP "\fBTab\fP" Expand the sub directory on the cursor position recursively. .IP "\fBPageUp\fP, \fBPageDown\fP" Move a cursor by half screen. .IP "\fBHome\fP(<), \fBEnd\fP(>)" Move a cursor to the top/bottom of tree. .IP "\fB?\fP" Move a cursor to the current directory. .IP "\fBBs\fP" Move a cursor to the parent directory. .IP "\fBLeft\fP" Group sub directories of the directory on the cursor position, or move a cursor to the parent directory. .IP "\fB(\fP, \fB)\fP" Move a cursor to the previous/next directory among the same level sub directories. .IP "\fBA\fP \- \fBZ\fP" Move a cursor to the directory whose name starts with the character or its lowercase. .IP "\fBl\fP" Change the directory tree into the specified directory. Moving to the floppy drive is also available. .IP "\fB^L\fP" Redraw the tree structure. .IP "\fBReturn\fP" Select the directory. .IP "\fBEsc\fP" Cancel. .RE .PD .PP When directories are recursively expanded, the machine operation is so late that it maybe seems to freeze. In this case, you can input any key while operating. If key input is recognized while expanding directories, expanding has been stopped at that moment in spite of not finishing. Even if key repeat keeps effective, any operation will be delayed for this function. .SS Archive Browser When the launcher is invoked on the position of the file whose extension is registered to associate with an archive browser, the archive browser screen has come. In this screen, you can browse files in the archive file as well as in the normal directory. But you cannot use the following internal commands in this screen. .PD 0 .PP .RS .ta 1.5i 3i 4.5i .nf .ft B LOG_TOP ATTR_FILE COPY_FILE MOVE_FILE DELETE_FILE DELETE_DIR RENAME_FILE MAKE_DIR WRITE_DIR TREE_DIR EDIT_FILE LOG_TREE COPY_TREE MOVE_TREE FIND_DIR ATTR_DIR SYMLINK_MODE DOTFILE_MODE FILEFLG_MODE SPLIT_WINDOW KILL_WINDOW .ft R .fi .RE .PD When you want to register a new archive browser, you must describe the format listed by the archiver as the following representation. One format string represents the format for 1 file in the list. .PD 0 .PP .RS .ta 1i .nf \fB%a\fP Field which indicates a file mode \fB%u\fP Field which indicates UID of a file \fB%g\fP Field which indicates GID of a file \fB%s\fP Field which indicates a file size \fB%y\fP Field which indicates a file creation year \fB%m\fP Field which indicates a file creation month (No concerning if numeric or alphabetical) \fB%d\fP Field which indicates a file creation day \fB%w\fP Field which indicates a file creation week (ignored) \fB%t\fP Field which indicates a file creation time ("HH:MM:SS" form, MM and SS can be lacking) \fB%p\fP Field which indicates a file creation am/pm \fB%B\fP Field which indicates a major device ID \fB%b\fP Field which indicates a minor device ID \fB%/\fP\fIstr\fR\fB/\fP Field which indicates a type is directory when this field string is \fIstr\fR (case insensitive) \fB%!\fP\fIstr\fR\fB!\fP 0 or more continuous fields which consists of the string \fIstr\fR (case insensitive) \fB%f\fP Field which indicates a filename \fB%x\fP Field which is needless (ignored) \fB%%\fP % itself \fB\en\fP Newline \fBSpace Tab\fP 0 or more characters of spaces or tabs .fi .RE .PD .PP In this description, the field means the area separated by spaces, tabs or newlines. When the string which indicates each information is separated by these characters, you can simply describe the above string which indicates that field. When the string is separated by another character, you should describe the above string with that separator. You can describe to indicate the field length as numeric, such as .IR %10a . This example means that the field which indicates a file mode consists of 10 characters. If you describe it with a character .B * as the field length instead of numeric, such as .IR %*f , the string to the end of line is regarded as a field, in which any space and tab will be ignored. When a field may have the different meanings according to situation, you should describe it quoted with .BR "{ }" , such as .IR %{yt} . This example means that this field indicates a creation year or a creation time. When the information for 1 file consists of multiple lines, you should place a .B \en on the position of newline in the format string. For example, the following are the format strings for the list of some archivers. While some spaces are used here for easiness to see, these spaces are not always necessary because any space between fields is ignored. .PD 0 .IP "`\fBlha l\fP'" 18 "%9a %u/%g %s %x %m %d %{yt} %f" .IP "`\fBlha v\fP' (MS\-DOS)" "%f\en%s %x %x %y-%m-%d %t" .IP "`\fBtar tvf\fP' (BSD)" "%9a %u/%g %s %m %d %t %y %f" .IP "`\fBtar tvf\fP' (SVR4)" "%a %u/%g %s %m %d %t %y %f" .PD .PP If you register archive browsers with above format, in the builtin command of .B EXECUTE_SH or in the initial configuration file, you can use the archive browser which is not prepared by default. But, if you want to execute or view files in the archive file, you must register the archiver command for the archive file, too, don't forget this. On some OS, .BR tar (1) may output the Japanese timestamp when .I japanese is substituted for .B LANG the environment variable. Since .B fd cannot analyze the representation like this, you should describe .I `export LANG=C' in the initial configuration file, or specify .B LANG in the description of listing command, such as .IR "`LANG=C tar tvf'" . .SS Floppy Drive (UNIX) You can access the MS-DOS formatted floppy disk, by representing to prefix "\fIc\fR\fB:\fP" to the directory name. But, it is necessary to register the floppy drive and set .B DOSDRIVE the internal variable which makes this function effective, in advance. Each registered drive is distinguished with the drive name. You should tag the physically different drive as the different drive name. When the same physical drive supports multiple formats, you can register each format with the same drive name, or the different drive name each other. If you tag the same drive name, the justice of the format is tried in registered order, so that you should register the format which you often use in the first place. Each drive of the floppy drive has the its own current directory. The default value of this is a root directory, and the current directory is moved back to a root directory again whenever you change a floppy disk. When you describe the directory name as starting with '/' after .RB ' : ', it means the absolute path representation of that drive. If this '/' is not exist, it means the relative path representation from the current directory of that drive, don't forget this. Regrettably, some internal commands like as .BR WRITE_DIR , .B INFO_FILESYS cannot support the floppy drive. Some filenames are renamed when they are copied from UNIX for reason of the filename length limit. When you use a lowercase letter as the drive name, you can access it as the floppy drive which can treat the Long File Name (LFN) for MS-Windows formatted floppy disk. In this case, you can copy a file with a long filename on UNIX as it is. But, when the UNICODE translation table .B fd\-unicd.tbl does not exist in the same directory as the invoked .B fd exists, any Kanji filename cannot be treated as LFN representation. Reversely, when you use a uppercase letter as the drive name, LFN is ignored and 8+3 formed filename is treated. MS-DOS version inherits this specification by the case of a drive name. .SS URL Drive (UNIX) You can access remote services on the network, by representing the URL string as the directory name. The URL format is \fIscheme\fR\fB://\fP[\fIuser\fR[\fB:\fP\fIpassword\fR]\fB@\fP]\fIhost\fR[\fB:\fP\fIport\fR]\fB/\fP\fIdirectory\fR\fB/\fP. You can specify .B ftp or .B http as .IR scheme . You can specify the name or IP address of the remote host as .IR host . You can specify the TCP port number as .IR port . If .I port is omitted, the default port number is used. The default port number for .B ftp is .BR 21 , and the default port number for .B http is .BR 80 . You can specify account information to connect the remote host as .I user and .IR password . If .I user is omitted, the anonymous FTP connection will be used with .BR ftp , or you will be queried as needed with .BR http . If .I password is omitted, you will be queried as needed. But, it is necessary to set .B URLDRIVE the internal variable which makes this function effective, in advance. Regrettably, some internal commands cannot support the URL drive, for the sake of restrictions of the FTP and HTTP protocols or settings of the host side. .SS String Input When you input the string, such as the pathname, the following key inputs are available. The kind of referred history differs with the input string required. In the split window mode, the current directory of another window is always placed on the top of the pathname history. .PD 0 .IP "\fBLeft\fP, \fBRight\fP" 10 Move a cursor. .IP "\fBUp\fP, \fBDown\fP" Refer the previous histories (only commands and pathnames), or move a cursor. .IP "\fBBeg\fP" Move a cursor to the beginning of string. .IP "\fBEol\fP" Move a cursor to the end of string. .IP "\fBIns\fP" Switch a input method to the insert/overwrite mode. (Default value is the insert mode.) .IP "\fBDel\fP" Delete a character on the cursor position. .IP "\fBBs\fP" Delete a character before the cursor position. .IP "\fBDelLine\fP" Delete a string after the cursor position. .IP "\fBInsLine\fP" Treat the next input character as it is, effective to input control characters. .IP "\fBEnter\fP" Insert a filename of the file on the cursor position. .IP "\fBPageUp\fP" Convert a character on the cursor position to uppercase. .IP "\fBPageDown\fP" Convert a character on the cursor position to lowercase. .IP "\fBTab\fP" Complete a pathname, a command name or a variable name on the cursor position. .RS When there are two or more completion choices, inputting this continuously can display the completion choice list. Except for command line in the internal shell, you can make a choice from this list with cursor keys and .RB [ Return ]. .RE .IP "\fB^L\fP" Redraw the input string. .IP "\fB^S\fP, \fB^R\fP" Search the previous histories (only commands and pathnames) incrementally. .IP "\fBReturn\fP" Decide the input, or decide the choice in the completion choice list. .IP "\fBEsc\fP" Cancel. .PD .PP The inputted string is expanded before evaluation as following. These expansions are also valid in the string of command macros. But these expansions are restrained in the string quoted with the quotation mark .BR ' . .IP "\fB~\fP" 8 Indicate your home directory, when it is the beginning of filename. .IP "\fB~\fP\fIuser\fR" Indicate .IR user 's home directory, when it is the beginning of filename. .B (UNIX) .IP "\fB~FD\fP" Indicate the directory where the invoked .B fd is exists, when it is the beginning of filename. .IP "\fB$\fP\fINAME\fR" .PD 0 .IP "\fB${\fP\fINAME\fR\fB}\fP" .PD Indicate the value of .I NAME the internal variable or the environment variable. When both are defined, the internal variable is prior. When both are undefined, it is replaced a null. The brace .B "{ }" separates .I NAME from its trailing characters. When .I NAME is the following character, it is replaced by the value substituted automatically by the shell. .RS .PD 0 .IP "\fB0\fP" 7 The executable filename when invoked. .IP "[\fB1\fP\-\fB9\fP]" The positional parameter. .IP "\fB\(**\fP" The all positional parameters which starts from .BR $1 . \fB"$\(**"\fR is replaced by \fB"$1 $2\fR .\|.\|.\fB"\fR. .IP "\fB@\fP" The all positional parameters which starts from .BR $1 . \fB"$@"\fR is replaced by \fB"$1" "$2"\fR .\|.\|. . .IP "\fB#\fP" The number of positional parameters. .IP "\fB\-\fP" The option flags which is set by options when invoked or .B set the builtin command. .IP "\fB?\fP" The exit status of the last executed command. .IP "\fB$\fP" The process number of the current shell. .IP "\fB!\fP" The process number of the last executed background process. .PD .RE .IP "\fB${\fP\fINAME\fR\fB:\-\fP\fIword\fR\fB}\fP" If the value except a null is substituted for .I NAME the internal variable or the environment variable, it is replaced by the value, otherwise it is replaced by .IR word . .IP "\fB${\fP\fINAME\fR\fB:=\fP\fIword\fR\fB}\fP" If the value except a null is substituted for .I NAME the internal variable or the environment variable, it is replaced by the value, otherwise .I word is substituted for .I NAME the internal variable, and this expression itself is replaced by .IR word . But you cannot substitute the value for any positional parameter. .IP "\fB${\fP\fINAME\fR\fB:?\fP\fIword\fR\fB}\fP" If the value except a null is substituted for .I NAME the internal variable or the environment variable, it is replaced by the value, otherwise display .I word and exit from the shell. If .I word is omitted, the string .RB `` "parameter null or not set" '' is displayed in its place. .IP "\fB${\fP\fINAME\fR\fB:\+\fP\fIword\fR\fB}\fP" If the value except a null is substituted for .I NAME the internal variable or the environment variable, it is replaced by .IR word , otherwise it is replaced by a null. .IP "\fB${\fP\fINAME\fR\fB\-\fP\fIword\fR\fB}\fP" If any value is substituted for .I NAME the internal variable or the environment variable, it is replaced by the value, otherwise it is replaced by .IR word . .IP "\fB${\fP\fINAME\fR\fB=\fP\fIword\fR\fB}\fP" If any value is substituted for .I NAME the internal variable or the environment variable, it is replaced by the value, otherwise .I word is substituted for .I NAME the internal variable, and this expression itself is replaces by .IR word . But you cannot substitute the value for any positional parameter. .IP "\fB${\fP\fINAME\fR\fB?\fP\fIword\fR\fB}\fP" If any value is substituted for .I NAME the internal variable or the environment variable, it is replaced by the value, otherwise display .I word and exit from the shell. If .I word is omitted, the string .RB `` "parameter null or not set" '' is displayed in its place. .IP "\fB${\fP\fINAME\fR\fB\+\fP\fIword\fR\fB}\fP" If any value is substituted for .I NAME the internal variable or the environment variable, it is replaced by .IR word , otherwise it is replaced by a null. .IP "\fB${#\fP\fINAME\fR\fB}\fP" It is replaced by the length in characters of the value of .I NAME the internal variable or the environment variable. If .I NAME is .B * or .BR @ , it is replaced by the number of positional parameters instead of the length of characters. .IP "\fB${\fP\fINAME\fR\fB%\fP\fIword\fR\fB}\fP" It is replaced by the string in which the smallest portion of the suffix matched by the .I word pattern is deleted from the value of .I NAME the internal variable or the environment variable. If .I NAME is .B * or .BR @ , each positional parameter is replaced. ( .B \e is used instead of .B % on MS-DOS version.) .IP "\fB${\fP\fINAME\fR\fB%%\fP\fIword\fR\fB}\fP" It is replaced by the string in which the largest portion of the suffix matched by the .I word pattern is deleted from the value of .I NAME the internal variable or the environment variable. If .I NAME is .B * or .BR @ , each positional parameter is replaced. ( .B \e\e is used instead of .B %% on MS-DOS version.) .IP "\fB${\fP\fINAME\fR\fB#\fP\fIword\fR\fB}\fP" It is replaced by the string in which the smallest portion of the prefix matched by the .I word pattern is deleted from the value of .I NAME the internal variable or the environment variable. If .I NAME is .B * or .BR @ , each positional parameter is replaced. .IP "\fB${\fP\fINAME\fR\fB##\fP\fIword\fR\fB}\fP" It is replaced by the string in which the largest portion of the prefix matched by the .I word pattern is deleted from the value of .I NAME the internal variable or the environment variable. If .I NAME is .B * or .BR @ , each positional parameter is replaced. .IP "\fB\e\fP\fIc\fR" It indicates a character .I c itself. You can use it when you want to use the preceding meta-character as a character with no evaluation, such as .B ~ or .BR $ . You can describe .B \e itself as "\fB\e\e\fP". But, on MS-DOS version, because .B \e which is used as the pathname delimiter must be treat as well as the normal character, .BI % c is expediently used in place of .BR \e . .PP .PD The following is replaced only in the shell which is executed by .B EXECUTE_SH and .BR EXECUTE_FILE . .IP "\fB`\fP\fIlist\fR\fB`\fP" 8 .I List is executed and this string is replaced by its standard output. .IP "\fB$(\fP\fIlist\fR\fB)\fP" .I List is executed and this string is replaced by its standard output like as \fB`\fP\fIlist\fR\fB`\fP. This differs from .BI ` list ` in the point that nested expressions are allowed. And any meta-characters such as quotes in .I list are evaluated as it is. .IP "\fB$((\fP\fIexpression\fR\fB))\fP" .I Expression the arithmetic expression is evaluated and this string is replaced by its result value. You can specify numeric values, variables and integral calculations with the following operators in .IR expression . .RS 12 .ta 1.8i 2.6i .nf (unary) (binary) arithmetic \fB+ \-\fP \fB+ \- * / %\fP boolean \fB!\fP \fB== != < > <= >= && ||\fP bit operator \fB~\fP \fB& | ^ << >>\fP parenthesis \fB( )\fP .fi .RE .IP "\fB?\fP" .PD 0 .IP "\fB\(**\fP" .IP "\fB[\fP" .IP "\fB]\fP" .PD The string including these letters is pattern-matched with existent files. When it is matched, it is replaced by all of the matched filenames which are sorted in alphabetical order. .RS .PD 0 .IP "\fB?\fP" 5 Match any single character except .BR / . .IP "\fB\(**\fP" Match any 0 or more length string not including .BR / . .IP "\fB\(**\(**\fP" Match any 0 or more length string including .BR / . .IP "\fB[\fP.\|.\|.\fB]\fP" Match any one of the characters enclosed by .BR "[ ]" . When enclosed characters include .BR \- , it matches any character whose character code is between characters before/after .BR \- . .IP "\fB[!\fP.\|.\|.\fB]\fP" Match any one of the characters not enclosed by .BR "[ ]" . .PD .PP But, when the first character of the filename is .BR . , .BR ? , .B \(** and .B \(**\(** don't match it. .RE .SS Edit Mode When you want to use some functions bound to special keys, such as a cursor key or a scroll key, such a key doesn't exist in some terminals. In such a case, substituting the string for .B EDITMODE the internal variable can make you use some control keys as alternative to these special keys. Since this alternative key function is prior to the key binding by the builtin command, the key binding is invalid for the control characters used as the alternative keys. The prepared edit modes are the following 3 modes. .IP "\fBemacs\fP" 8 .RS 12 .ta 0.5i 1.5i 2i 3i 3.5i .nf \fB^P\fP = \fBUp\fP \fB^A\fP = \fBBeg\fP \fB^N\fP = \fBDown\fP \fB^E\fP = \fBEol\fP \fB^D\fP = \fBDel\fP \fB^F\fP = \fBRight\fP \fB^Q\fP = \fBInsLine\fP \fB^B\fP = \fBLeft\fP \fB^K\fP = \fBDelLine\fP \fB^V\fP = \fBPageDn\fP \fB^Y\fP = \fBPageUp\fP \fB^O\fP = \fBEnter\fP \fB^M\fP = \fBReturn\fP \fB^I\fP = \fBTab\fP \fB^H\fP = \fBBs\fP \fB^[\fP = \fBEsc\fP \fB^G\fP = \fBEsc\fP .fi .RE .IP "\fBwordstar\fP" .RS 12 .ta 0.5i 1.5i 2i 3i 3.5i .nf \fB^E\fP = \fBUp\fP \fB^A\fP = \fBBeg\fP \fB^V\fP = \fBIns\fP \fB^N\fP = \fBDown\fP \fB^F\fP = \fBEol\fP \fB^G\fP = \fBDel\fP \fB^F\fP = \fBRight\fP \fB^W\fP = \fBHome\fP \fB^]\fP = \fBInsLine\fP \fB^S\fP = \fBLeft\fP \fB^Z\fP = \fBEnd\fP \fB^Y\fP = \fBDelLine\fP \fB^C\fP = \fBPageDn\fP \fB^R\fP = \fBPageUp\fP \fB^N\fP = \fBEnter\fP \fB^M\fP = \fBReturn\fP \fB^I\fP = \fBTab\fP \fB^H\fP = \fBBs\fP \fB^[\fP = \fBEsc\fP .fi .RE .IP "\fBvi\fP" .B Vi mode has the 2 local modes: "insert mode" and "command mode", and the function of keys are quite different with each mode. You are in the command mode when you start to input, then you must input any key among 4 keys which switch to the insert mode, in order to input normal keys. .RS 12 .ta 0.5i 1.5i 2i 3i 3.5i .nf (command mode) \fBk\fP = \fBUp\fP \fB0\fP = \fBBeg\fP \fBj\fP = \fBDown\fP \fB$\fP = \fBEol\fP \fBx\fP = \fBDel\fP \fBl\fP = \fBRight\fP \fBg\fP = \fBHome\fP \fBh\fP = \fBLeft\fP \fBG\fP = \fBEnd\fP \fBD\fP = \fBDelLine\fP \fB^F\fP = \fBPageDn\fP \fB^B\fP = \fBPageUp\fP \fBo\fP = \fBEnter\fP \fB^M\fP = \fBReturn\fP \fB^I\fP = \fBTab\fP \fB^H\fP = \fBBs\fP \fB^[\fP = \fBEsc\fP (from command mode to insert mode) \fBi\fP, \fB:\fP = only switch its mode \fBI\fP = + \fBBeg\fP \fBa\fP = + \fBRight\fP \fBA\fP = + \fBEol\fP \fBR\fP = overwrite \fBr\fP = overwrite once (insert mode) \fB^V\fP = \fBInsLine\fP \fBEsc\fP = to command mode .fi .RE .RS This key binding is so particular that it is not suitable for those who don't use .B vi editor everyday. .RE .SS Kana-Kanji IME (UNIX) You can input strings in the Kana-Kanji IME mode, if you input the key specified by .B IMEKEY or select "Kanji" from the pseudo terminal menu. The translation performance will depend on the Kana-Kanji translation dictionary .BR fd\-dict.tbl . When it does not exist in the same directory as the invoked .B fd exists, translation to Kanji will not be available. The standard installed dictionary file is the Tan-Kanji dictionary, which can support only the Tan-Kanji translation. The dictionaly such as the pubdic, which includes the Hinsi information, will bring you the Tan-Bunsetsu translation. The Ren-Bunsetsu translation is not be supported. In the Kana-Kanji IME mode, the following key inputs are available. .PD 0 .RS .IP "\fBSpace\fP" 10 Trancelate to Kanji, or select the next translation candidate. .IP "\fBLeft\fP, \fBRight\fP" .IP "\fBUp\fP, \fBDown\fP" Move a cursor in the list of the translation candidate. .IP "\fBBs\fP, \fBDel\fP" Delete a character before the cursor position. .IP "\fBTab\fP" Toggle Hiragana, Katakana, Hankaku-Kana and the direct input. .IP "\fB^L\fP" Redraw the input string. .IP "\fBReturn\fP" Decide the translation result. .IP "\fBEsc\fP" Cancel. .RE .PD .PP When you translate the string of the capital 4 digit hexadecimal prefixed by a capital letter, it is regarded as the hexadecimal showing the following Kanji code respectively. Then the menu will be displayed to select Kanji next to the Kanji code number. .PD 0 .RS .IP "\fBS\fP" 4 Shift JIS .IP "\fBE\fP" EUC-JP .IP "\fBJ\fP" JIS code (JIS X0208) .IP "\fBK\fP" Kuten code .IP "\fBU\fP" UNICODE (UCS2) .RE When you input .RB [ Space ] in the state where you decide an un-translated Kana, it is regarded as the initial reading of Kanji. Then the menu will be desplayed to select Kanji whose reading starts with the Kana. .PD .SS Parameter Macros You can use the following parameter macros in the string which is used for the registration of command macros and for executing command. But, you cannot use them in the functions, the input file for .B source command, and the initial configuration file, then you should use .B evalmacro command when you want to use any parameter macro in them. .IP "\fB%C\fP" 8 The filename on the cursor position. Or, it indicates the archive filename, in the macro to register the archiver command. .IP "\fB%X\fP" The filename except its extension on the cursor position. Or, it indicates the archive filename except its extension, in the macro to register the archiver command. Only the last one extension is removed. .BR T , .BR TA , .B M trailing .B %X are replaced by .BR %T , .BR %TA , .B %M except its extension respectively. On MS-DOS version, you can describe a trailing .B S as well as them. .IP "\fB%P\fP" The pathname of the current directory. .IP "\fB%K\fP" Prompt and return to .B fd after a command is finished. But, the meaning of .B %K is reverse in .B EXECUTE_FILE and .BR EXECUTE_SH ; it prompts by default and doesn't prompt if .B %K is specified. You can never specify to prompt in macros to register the archive browser of the launcher and macros to register the archiver command. .IP "\fB%T\fP" List marked files separated by spaces as possible. When files are so many that the command line length exceeds the OS limitation, the rest of marked files are ignored. .IP "\fB%TA\fP" List marked files as well as .BR %T , and repeat the same command for spilt files to complete all marked files. .IP "\fB%M\fP" Execute the same command as many times as marked files, sending the marked file one by one. It is useful to mark files by .B MARK_FIND and execute "mv %M %XM.bak" by .BR EXECUTE_SH . .IP "\fB%N\fP" Restrain the filename addition even if the parameter is omitted. .IP "\fB%R\fP" Make you input the additional parameter in executing a macro, if the length of command string has enough margin. The cursor position in input is placed on the position of .B %R in a macro. But, .B %R is ignored in macros to register the archive browser of the launcher, macros to register the archiver command, and .BR EXECUTE_FILE , .BR EXECUTE_SH . .IP "\fB%S\fP" The 8+3 formed filename with which the LFN formed filename on the cursor position is replaced. You can use it when you use external commands which can treat only 8+3 formed arguments. .BR T , .BR TA , .B M trailing .B %S can be described as well as .BR %X . .B (DOS) .IP "\fB%JS\fP" The Kanji code of the string enclosed by this macro is converted into Shift JIS. .B (UNIX) .IP "\fB%JE\fP" The Kanji code of the string enclosed by this macro is converted into EUC-JP. .B (UNIX) .IP "\fB%J7\fP" The Kanji code of the string enclosed by this macro is converted into 7bit JIS. .B (UNIX) .IP "\fB%J8\fP" The Kanji code of the string enclosed by this macro is converted into 8bit JIS. .B (UNIX) .IP "\fB%JJ\fP" The Kanji code of the string enclosed by this macro is converted into ISO-2022-JP. .B (UNIX) .IP "\fB%JH\fP" The Kanji code of the string enclosed by this macro is converted into HEX. .B (UNIX) .IP "\fB%JC\fP" The Kanji code of the string enclosed by this macro is converted into CAP. .B (UNIX) .IP "\fB%JU\fP" The Kanji code of the string enclosed by this macro is converted into UTF-8. .B (UNIX) .IP "\fB%JM\fP" The Kanji code of the string enclosed by this macro is converted into UTF-8 for Mac OS X. .B (UNIX) .IP "\fB%JI\fP" The Kanji code of the string enclosed by this macro is converted into UTF-8 for iconv, which is used on environments using iconv-based UTF-8 such as Linux. .B (UNIX) .IP "\fB%JA\fP" The Kanji code of the string enclosed by this macro is converted into the Kanji code which is used in the pathname indicated by the string. The variables .BR SJISPATH , .BR EUCPATH , etc. can specify what kanji code is used in each pathname. .B (UNIX) .PP When no filename parameter, such as .B %C and .BR %T , is taken with the result to expand parameter macros in a command macro, the filename on the cursor position is automatically added to the last of expanded string, as .I ./filename form. This addition is not done, in case of the input string for executing command, or when .B %N macro is specified. .SS Customize You can customize .B fd as the following ways. If you specify some configuration in multiple ways overlapped, it is prior in this order. .RS 3 .IP "\fBExecuting builtin commands with EXECUTE_SH\fP" 10 You can execute builtin commands for each registration for the internal variable definition, the environment variable definition, the alias definition, the function definition, the key binding, the keymap changing, the launcher registration, the archiver command registration, and the floppy drive registration. .IP "\fBCustomizer\fP" .B EDIT_CONFIG command is available for the internal variable definition, the key binding, the keymap changing, the launcher registration, the archiver command registration, and the floppy drive registration. .IP "\fBCommand line options\fP" You can specify the command line options as .RI ` \fB\-\fPNAME\fB=\fPvalue ' form, to define the internal variables. .IP "\fB.fd2rc\fP" You can prepare the initial configuration file .B .fd2rc on your home directory, to execute the command which is written in this file, before the startup of .BR fd . You can describe builtin commands and external commands in it to set up each configuration. Yet, when .B fdsh is invoked as a login shell, .B .fdshrc is read instead of .BR .fd2rc . The initial configuration file .B /etc/fd2rc which is prepared by a system administrator is read preceding .B .fd2rc and .BR .fdshrc . If this file exists, the initial configurations prepared by a system administrator are valid unless you intentionally delete them in .B .fd2rc and .BR .fdshrc . (On MS-DOS version, these filenames are .BR $HOME\efd2.rc , " $HOME\efdsh.rc" and .BR ~FD\efd2rc .) .IP "\fBEnvironment variables\fP" Any valid variable name as the internal variable can be valid to be defined as the environment variable in advance. But the internal variable is always prior to the environment variable in .BR fd . When the same named environment variable is used in another application, you can also use the name which .B FD_ is prefixed to each environment variable for .B fd only. This environment variable with .B FD_ is always prior to the environment variable without it, then the definition of the environment variable with .B FD_ is prior to the definition of the internal variable without .BR FD_ . .RE .SS Customizer .B EDIT_CONFIG command invokes the customizer to set up configurations interactively. You can select the category with the right/left cursor key, and select the item with the up/down cursor key, and change its content with .RB [ Return ]. When you finish to change, exit from the customizer with .RB [ Esc ]. The following categories are prepared. .PD 0 .PP .RS 3 .IP "\fBVariables\fP" 10 Change the value of internal variables. The input method is different with the variable, then you should input following the guidance on screen. .IP "\fBKey bind\fP" Change the command bound to each key. When you newly bind a command to the key with no binding, you should select "NewEntry". If you select "Delete bind", the existent key binding is deleted. .IP "\fBKey map\fP" Change the key code mapping for each special key. If you push .RB [ Esc ] when you are prompted to push the key, the existent key mapping is deleted. .B (UNIX) .IP "\fBLauncher\fP" Change the launcher registration for each extension. When you newly register a launcher for the extension with no registration, you should select "NewEntry". If you input a null line when you input a command for the launcher, the existent launcher registration is deleted. .IP "\fBArchiver\fP" Change the archiver command registration for each extension. When you newly register a archiver command for the extension with no registration, you should select "NewEntry". If you input a null line both when you input a command for pack/unpack, the existent archiver command registration is deleted. .IP "\fBDOS drive\fP" Change the floppy drive registration. When you newly register a floppy drive for the drive name with no registration, you should select "NewEntry". If you input a null line when you input a device name, the existent floppy drive registration is deleted. .B (UNIX) .IP "\fBSave\fP" Save the configurations changed with the customizer into a file, or cancel configurations to restore to the previous state. .RS 10 .IP Cancel 10 Cancel the changed configurations within the specified categories, and restore to the state before the customizer is invoked. .IP Clear Cancel all the configurations within the specified categories, and restore to the default state. .IP Load Load configurations from the specified file. .IP Save Save all the configurations within the specified categories to the specified file. .IP Overwrite Overwrite all the configurations within the specified categories to the specified existent file. The original configurations which has existed in the file are parsed, and the configuration for the same target is overwritten at the same place as possible. The configurations which are not set up at present and the configurations which are not supported by the customizer are remains as it is. .PD .PP When you specify the range of categories, all categories are selected by default, then you should turn on/off each selection with .RB [ Space ] and decide with .RB [ Return ]. .RE .RE If you try to exit from the customizer without saving after changing any configuration, you will be confirmed whether if it is right to exit without saving. While the changed configurations themselves are valid even if you exit without saving, when you want them to be valid in the next invoked .BR fd , you must save them into the initial configuration file. .SH ENVIRONMENT VARIABLES The following environment variables are valid in .BR fd . These environment variables can be valid if they are defined as the internal variables. You can specify them as the command line options in .RI ` \fB\-\fPNAME\fB=\fPvalue ' form. But the variables followed by \(** cannot be use with the prefix .B FD_ as the environment variables. .IP "\fBADJTTY\fP" 14 Reset the terminal mode forcedly to the normal state, when .B fd is finished. Invoking .B fd can adjust the terminal rightly from the state displaying broken characters. Any value except .B 0 and null effects valid. .B (UNIX) .IP "\fBANSICOLOR\fP" Colorize the file display. When the terminal which you use supports the color control escape sequence of ANSI standard, each file is displayed with color according to its file type. If the value is .BR 1 , it is colorized. If the value is .BR 2 , the background color is forced to be black, for the case that the foreground color is the same as the background color and indistinguishable. If the value is .BR 3 , the foreground color is forced to be black. .IP "\fBANSIPALETTE\fP" Specify color palette according to file type when the file display is colorized. This variable value consists of a numeric value whose maximum columns are .B 11 columns. The number of each column shows a color number, which specifies the color of file type corresponding with its column. The following are correspondence of the column number to the file type. .RS 18 .ta 0.5i .nf \fB1\fP normal file \fB2\fP background \fB3\fP directory \fB4\fP unwritable file \fB5\fP unreadable file \fB6\fP symbolic link \fB7\fP socket (or system file on MS-DOS) \fB8\fP FIFO (or label on MS-DOS) \fB9\fP block device \fB10\fP character device \fB11\fP executable file .fi .RE .RS The following are the meaning of color number specified on each column. .RE .RS 18 .ta 0.5i .nf \fB0\fP black \fB1\fP red \fB2\fP green \fB3\fP yellow \fB4\fP blue \fB5\fP magenta \fB6\fP cyan \fB7\fP white \fB8\fP default color for foreground \fB9\fP default color for background .fi .RE .RS The color number .B 8 is forced to be black, if the value of .B ANSICOLOR the variable is .BR 3 . The color number .B 9 is forced to be black, if the value of .B ANSICOLOR the variable is .BR 2 . .RE .RS When the columns are less than .B 11 or this variable is not set, the standard color palette will be applied for the file type corresponding with the following columns. The standard color palette is described with the above color number as .BR 89624351888 . .RE .IP "\fBAUTOUPDATE\fP" Specify the interval in seconds to update automatically the browser screen or the tree screen. When the key input idles for the specified seconds, the current information of file list will be updated. If this value is .BR 0 , the screen will never updated automatically. The default value is .BR 0 . .IP "\fBBASICCUSTOM\fP" Limit the internal variables for configuration only to basic variables in the customizer, to hide advanced variables. Any value except .B 0 and null effects valid. .IP "\fBCDPATH\fP\(**" Specify the search path when an argument of .B cd the builtin command does not start with .BR / . You can specify multiple paths separating with .RB ' : '. No search path is specified by default. .IP "\fBCOLUMNS\fP\(**" The variable for the columns of a terminal screen. If some value is set, this value will be replaced automatically according to changing the screen size. If no value is set, this value will remain unset. .IP "\fBCOMSPEC\fP" Specify the shell used to invoke a batch file. If undefined, the shell defined by .B SHELL the internal variable or \eCOMMAND.COM is used. .B (DOS) .IP "\fBCOPYCMD\fP\(**" Specify the default options used by .B copy the builtin command. .IP "\fBDEFCOLUMNS\fP" Specify the columns displayed in the screen when .B fd is invoked. The default value is .BR 2 . If you specify the value except .BR 1 , .BR 2 , .B 3 and .BR 5 , it is ignored. .IP "\fBDEFKCODE\fP" Specify the system default Kanji code. The arguments passed to external commands invoked from .B fd will be converted into the specified Kanji code. When you use macros such as .B %C and .BR %JJ , it will be converted into the Kanji code according to each macro. .BR JIS8 , .BR JUNET , .BR HEX , .BR CAP , etc. among them are the Kanji codes used in Samba. .B (UNIX) .RS 18 .ta 1.5i .nf \fBSJIS\fP, \fBsjis\fP Shift JIS \fBEUC\fP, \fBeuc\fP EUC-JP \fBJIS\fP, \fBjis\fP 7bit JIS \fBJIS8\fP, \fBjis8\fP 8bit JIS \fBJUNET\fP, \fBjunet\fP ISO-2022-JP \fBOJIS\fP, \fBojis\fP 7bit JIS (JIS C6226-1978 + roman) \fBOJIS8\fP, \fBojis8\fP 8bit JIS (JIS C6226-1978 + roman) \fBOJUNET\fP, \fBojunet\fP ISO-2022-JP (JIS C6226-1978 + roman) \fBHEX\fP, \fBhex\fP HEX \fBCAP\fP, \fBcap\fP CAP \fBUTF8\fP, \fButf8\fP UTF-8 \fBUTF8-mac\fP, \fBmac\fP UTF-8 for Mac OS X \fBUTF8-iconv\fP UTF-8 for iconv default no convert .fi .RE .IP "\fBDIRCOUNTLIMIT\fP" Specify the maximum number of files read from the directory in the tree screen. When the directory trailed by .RB ' > ' has no sub directory, the expanded result is not changed. If the number of files (including directories) in the directory is within this value, the directory with no sub directory is not trailed .RB ' > ' from the first. Moreover, the file list in the directory displayed on the right of screen is not displayed over this value. If this value is .BR 0 , you can realize a comfortable operation speed even in the slow machine. The default value is .B 50 files. .IP "\fBDIRCMD\fP\(**" Specify the default options used by .B dir the builtin command. .IP "\fBDIRHIST\fP" Specify the maximum number of the directory histories which can be referred by the directory input line. The default value is .BR 50 . If this value is .BR 0 , you can refer to no directory history. .IP "\fBDIRHISTFILE\fP" Specify the name of the directory history file which can be referred by the directory input line. Unless you specify it, the directory history is not loaded nor saved. The default value is not specified. .IP "\fBDIRHISTUMASK\fP" Specify the file creation mask with octal expression for the directory history file. It is used only if no existent file exists. But the mask value set by .B umask the builtin command is prior, then actual mask value is the logical OR of this value and .B umask value. .IP "\fBDISPLAYMODE\fP" Specify the filename display mode of the file list when .B fd is invoked. Each of the symbolic link mode, the file type symbol mode and the dot file display mode can be selected individually. The default value is .BR 0 . The following are specifiable values. .RS 18 .ta 0.5i 1.75i 3i .nf \fB0\fP standard \fB1\fP SYMLINK \fB2\fP FILETYPE \fB3\fP SYMLINK & FILETYPE \fB4\fP DOTFILE \fB5\fP SYMLINK & DOTFILE \fB6\fP FILETYPE & DOTFILE \fB7\fP SYMLINK & FILETYPE & DOTFILE .fi .RE .RS Moreover, on the OS which supports the file flag, if you specify the value adding .B 8 to each value, you can select the file flag display mode. .RE .IP "\fBDOSDRIVE\fP" Validate the access function to the MS-DOS floppy. If no floppy drive is registered, this validation cannot make you access the floppy. Any value except .B 0 and null effects valid. .RS On MS-DOS version, This definition can make you treat the LFN formed filename in the old DOS before Ver. 6.xx. In this case, you don't have to register any floppy drive. the access speed may be slow or some functions may be restricted for the reason to operate the disk I/O not by way of OS. .RE .IP "\fBDUMBSHELL\fP" Don't use any control sequences to edit command line in the internal shell. In the internal shell, the cursor addressing of terminal mode is not valid. In case of some terminal such as a console terminal, the cursor addressing cannot work correctly in this terminal mode, and the editing string is displayed incorrectly. When this variable is valid, while no control sequence is used to edit command line, an inefficient cursor addressing will cause restriction of some functions and failure of response. Any value except .B 0 and null effects valid. .IP "\fBEDITMODE\fP" Specify the edit mode of key input as the string. The default value is .BR emacs . The value except .BR emacs , .B wordstar and .B vi or null are specified, any control character is not converted and will be sent as it is. .IP "\fBEDITOR\fP" Specify the editor command used for editing files. .IP "\fBENV\fP\(**" Specify the additional initial configuration file when invoked as .BR fdsh . You must specify its filename as fullpath. When this variable is set, the initial configuration file is read after .BR /etc/fd2rc , and before .B .fd2rc or .BR .fdshrc . This value will be ignored if your real and effective UIDs or real and effective GIDs are different. .IP "\fBFCEDIT\fP" Specify the editor command used for .B fc the builtin command. .IP "\fBFD_VERSION\fP" A version string of the running .BR fd . .IP "\fBFNAMEKCODE\fP" Specify the Kanji code for filename. Any filename is converted into the specified Kanji code at the point of accessing the file, then you can refer to the file which has a Kanji filename from another machine on network which use a different Kanji code. The archive browser and .B browse the builtin command also refer the specified Kanji code. .BR JIS8 , .BR JUNET , .BR HEX , .BR CAP , etc. among them are the Kanji codes used in Samba. .B (UNIX) .RS 18 .ta 1.5i .nf \fBSJIS\fP, \fBsjis\fP Shift JIS \fBEUC\fP, \fBeuc\fP EUC-JP \fBJIS\fP, \fBjis\fP 7bit JIS \fBJIS8\fP, \fBjis8\fP 8bit JIS \fBJUNET\fP, \fBjunet\fP ISO-2022-JP \fBOJIS\fP, \fBojis\fP 7bit JIS (JIS C6226-1978 + roman) \fBOJIS8\fP, \fBojis8\fP 8bit JIS (JIS C6226-1978 + roman) \fBOJUNET\fP, \fBojunet\fP ISO-2022-JP (JIS C6226-1978 + roman) \fBHEX\fP, \fBhex\fP HEX \fBCAP\fP, \fBcap\fP CAP \fBUTF8\fP, \fButf8\fP UTF-8 \fBUTF8-mac\fP, \fBmac\fP UTF-8 for Mac OS X \fBUTF8-iconv\fP UTF-8 for iconv default no convert .fi .RE .IP "\fBFREQFILE\fP" Specify the translation frequency file for the users Kana-Kanji translation learning. If the filename is not defined, the frequency information will not be saved nor be referred. The default value is .BR ~/.fd_freq . .B (UNIX) .IP "\fBFREQUMASK\fP" Specify the file creation mask with octal expression for the translation frequency file for the users Kana-Kanji translation learning. The updated translation frequency file will be rebuilt, not be overwritten, so that it is used even if existent file exists. But the mask value set by .B umask the builtin command is prior, then actual mask value is the logical OR of this value and .B umask value. .B (UNIX) .IP "\fBFTPADDRESS\fP" Specify the mail address used as the password for anonymous FTP, when the URL drive connects the FTP host. The default value is .BR FDclone@ . .B (UNIX) .IP "\fBFTPLOGFILE\fP" Specify the filename to which communication logs are outputted, when the URL drive communicates with the FTP host. If it is not specified as fullpath nor you don't prepare the directory in which the log file is stored, no log will be outputted. .B (UNIX) .IP "\fBFTPPROXY\fP" Specify the URL used as the proxy server, when the URL drive connects the FTP host. The URL format is \fIscheme\fR\fB://\fP[\fIuser\fR[\fB:\fP\fIpassword\fR]\fB@\fP]\fIhost\fR[\fB:\fP\fIport\fR]. You can specify .B ftp or .B http as .IR scheme . You can specify account information to connect the proxy server as .I user and .IR password . The default value is not specified. .B (UNIX) .IP "\fBFUNCLAYOUT\fP" Specify the layout of the function line, as the form of .I n * 100 + .IR size . .I N means the number of function keys to be displayed in the function line. .I Size means the block size of function keys to be displayed. The default value is .BR 1005 . (It means 10 function keys will be displayed, 5 of which are grouped.) .IP "\fBHIDEPASSWD\fP" Suppress displaying .B * as a replacement for the inputted letter, when the URL drive requires you to input a password. Any value except .B 0 and null effects valid. .B (UNIX) .IP "\fBHISTFILE\fP" Specify the name of the command history file which can be referred by .B EXECUTE_FILE and .BR EXECUTE_SH . Unless you specify it, the command history is not loaded nor saved. The default value is .BR ~/.fd_history . (On MS-DOS version, The default value is .BR $HOME\efd.hst .) .IP "\fBHISTSIZE\fP" Specify the maximum number of the command histories which can be referred by .B EXECUTE_FILE and .BR EXECUTE_SH . The default value is .BR 50 . If this value is .BR 0 , you can refer to no command history. .IP "\fBHISTUMASK\fP" Specify the file creation mask with octal expression for the command history file. It is used only if no existent file exists. But the mask value set by .B umask the builtin command is prior, then actual mask value is the logical OR of this value and .B umask value. .IP "\fBHOME\fP\(**" Specify the default value when no argument of .B cd the builtin command is specified. When invoked as a login shell, if this variable is specified that directory becomes the current directory, otherwise your home directory is automatically defined as this value. .IP "\fBHTMLLOGFILE\fP" Specify the filename to which received HTML data log are outputted, when the URL drive communicates with the HTTP host. If it is not specified as fullpath nor you don't prepare the directory in which the log file is stored, no log will be outputted. .B (UNIX) .IP "\fBHTTPLOGFILE\fP" Specify the filename to which communication logs are outputted, when the URL drive communicates with the HTTP host. If it is not specified as fullpath nor you don't prepare the directory in which the log file is stored, no log will be outputted. .B (UNIX) .IP "\fBHTTPPROXY\fP" Specify the URL used as the proxy server, when the URL drive connects the HTTP host. The URL format is \fIscheme\fR\fB://\fP[\fIuser\fR[\fB:\fP\fIpassword\fR]\fB@\fP]\fIhost\fR[\fB:\fP\fIport\fR]. You can specify .B http as .IR scheme . You can specify account information to connect the proxy server as .I user and .IR password . The default value is not specified. .B (UNIX) .IP "\fBIFS\fP\(**" Specify the internal field separators. They are used in .B EXECUTE_SH to separate command and arguments. Space, tab and newline are specified by default. .IP "\fBIGNORECASE\fP" Ignore uppercase/lowercase when filenames are compared. Any value except .B 0 and null effects valid. .B (UNIX) .IP "\fBIMEBUFFER\fP" Specify whether if the Kana-Kanji translation table is held on memory or not. It will be fast to translate strings from Kana to Kanji. You should set this if you have enough memory. The following are specifiable values. .B (UNIX) .RS 18 .ta 0.5i 1i .nf \fB0\fP not hold on memory \fB1\fP only the Hinsi information table \fB2\fP also includes the index tables \fB3\fP hold all tables .fi .RE .IP "\fBIMELEARNING\fP" Specify the learning level with the translation frequency file for the users Kana-Kanji translation learning. The larger value will increase the importance of the frequency information. If the value is .BR 0 , the frequency information is only saved, without any reference. The default value is .BR 16 . .B (UNIX) .IP "\fBIMEKEY\fP" Specify the key to toggle the direct input mode and the Kana-Kanji IME mode when you input some strings. You can describe the same key name as .B bind command. The default value is not specified. .B (UNIX) .IP "\fBINHERITCOPY\fP" Inherit the destination timestamp from the source timestamp when .B COPY_FILE command is executed. Any value except .B 0 and null effects valid. .B (UNIX) (On MS-DOS version, the destination timestamp is always inherited, if this variable is effective or not.) .IP "\fBINPUTKCODE\fP" Specify the Kanji code for input from keyboard. When the value except the following is specified, the Kanji code specified in compile is valid. .B (UNIX) .RS 18 .ta 1.5i .nf \fBSJIS\fP, \fBsjis\fP Shift JIS \fBEUC\fP, \fBeuc\fP EUC-JP \fBUTF8\fP, \fButf8\fP UTF-8 \fBUTF8-mac\fP, \fBmac\fP UTF-8 for Mac OS X \fBUTF8-iconv\fP UTF-8 for iconv .fi .RE .IP "\fBLANGUAGE\fP" Specify the language for display character. It means not only each messages displayed by .BR fd , but also a Kanji code of filename to be converted. The following is the kind of languages, it doesn't have to be the string itself and is enough to contain the string, the value of .B LANG the environment variable also can be used. .BR JIS8 , .BR JUNET , etc. among them are the Kanji codes used in Samba. .RS 18 .ta 1.5i .nf \fBSJIS\fP, \fBsjis\fP Shift JIS \fBEUC\fP, \fBeuc\fP EUC-JP \fBJIS\fP, \fBjis\fP 7bit JIS \fBJIS8\fP, \fBjis8\fP 8bit JIS \fBJUNET\fP, \fBjunet\fP ISO-2022-JP \fBOJIS\fP, \fBojis\fP 7bit JIS (JIS C6226-1978 + roman) \fBOJIS8\fP, \fBojis8\fP 8bit JIS (JIS C6226-1978 + roman) \fBOJUNET\fP, \fBojunet\fP ISO-2022-JP (JIS C6226-1978 + roman) \fBUTF8\fP, \fButf8\fP UTF-8 \fBUTF8-mac\fP, \fBmac\fP UTF-8 for Mac OS X \fBUTF8-iconv\fP UTF-8 for iconv \fBen\fP, \fBC\fP, \fBPOSIX\fP English (message only) default no convert .fi .RE .RS (On MS-DOS version, only the English is valid.) .RE .IP "\fBLINENO\fP\(**" Indicate the current line number. When not in a script nor function, this value cannot be guaranteed to make sense. If you .B unset or reset this value, this variable will lose its special meaning to be treated as a general variable. .IP "\fBLINES\fP\(**" The variable for the lines of a terminal screen. If some value is set, this value will be replaced automatically according to changing the screen size. If no value is set, this value will remain unset. .IP "\fBLOGFILE\fP" Specify the log filename with the level spacified by .B LOGLEVEL or .BR ROOTLOGLEVEL . If it is not specified as fullpath, it will be regarded as the path under your home directory. You must prepare the directory in which the log file is stored, because any directories are not created automatically. The default value is not specified. .IP "\fBLOGLEVEL\fP" Specify the priority for the log contents. The default value is .BR 0 . .RS 18 .ta 0.8i .nf \fB0\fP no log \fB1\fP only warning such as writing \fB2\fP notice such as changing, and over \fB3\fP info. such as refering, and over >= \fB4\fP debug level, and over .fi .RE .RS The same operation can result as an error to output the log in the lower priority by 1 level. .RE .IP "\fBLOGSIZE\fP" Specify the maximum kilobyte size for the log file specified by .BR LOGFILE . If the size exceeds this value, the last log file will be renamed as the filename followed by the extension .B .old to create another new log file. The default value is .BR 1024 (1MB). If this value is .BR 0 , the log file will not be renamed. .IP "\fBLOOPCURSOR\fP" Loop a cursor moving within the same page, when you move a cursor. Any value except .B 0 and null effects valid. .IP "\fBMAIL\fP\(**" Specify the spool filename when the internal shell will check new mails. If .B MAILPATH is set, it is prior to this. .B (UNIX) .IP "\fBMAILCHECK\fP\(**" Specify the interval of checking new mails in seconds, for the spool files specified by .B MAILPATH or .BR MAIL . The default value is .B 600 seconds. If this value is .BR 0 , it will be checked before each prompt. .B (UNIX) .IP "\fBMAILPATH\fP\(**" Specify the multiple spool filenames, as the list separated by .BR : , when the internal shell will check new mails. The any specified files will be checked. Each filenames can be followed by .B % and a arrival message of new mails. The default message is .BR "you have mail\^" . .B (UNIX) .IP "\fBMESSAGELANG\fP" Specify the language for display character. The language of messages specified by this will be prior to the one specified by .BR LANGUAGE . When the message is Japanese, the Kanji code will be defined by the value of .BR LANGUAGE . The following is the kind of languages, it doesn't have to be the string itself and is enough to contain the string, the value of .B LANG the environment variable also can be used. Otherwise, In case of some additional message catalogs are prepared, you can specify its extension as the catalog name for .B MESSAGELANG to replace messages. .RS 18 .ta 1.5i .nf \fBen\fP, \fBC\fP, \fBPOSIX\fP English \fBja\fP Japanese default the value of \fBLANGUAGE\fP .fi .RE .IP "\fBMINFILENAME\fP" Specify the minimum character length of filename display area in the file list. When the area enough to be specified here cannot be obtained, the information is reduced in the order of UID, GID, timestamp, size. The default value is .B 12 characters. .IP "\fBOPTARG\fP\(**" An option argument is substituted in .B getopts the builtin command. .IP "\fBOPTIND\fP\(**" Specify the index of the next parameter in .B getopts the builtin command. .IP "\fBPAGER\fP" Specify the pager command used for viewing files. .IP "\fBPATH\fP\(**" Specify the search path for executing external commands. You can specify multiple paths separating with .RB ' : '. .IP "\fBPPID\fP\(**" Indicate the process ID of the parent proccess for .B fd which is invoked first. .B (UNIX) .IP "\fBPRECEDEPATH\fP" Specify the file preceding function, which displays only filenames before obtaining their file information, for the directory which has a lot of files like as /dev. You can specify multiple pathnames separating with .RB ' : '. You are enough to specify only the top directory where you want to realize the file preceding function, then the file preceding function is valid in all of the directories under that directory. When the file preceding function is effective, any files are not sorted in that directory, and file information is obtained file by file while waiting the key input. No pathname is specified by default. .IP "\fBPRECOPYMENU\fP" Display the menu in advance, which ask you what do you want with the same named files and the restricted files, when you copy, move, or delete multiple files. In case of too many target files, it avoids the occurrence of query after waiting for a moment. Any value except .B 0 and null effects valid. .IP "\fBPROGRESSBAR\fP" Display the progress bar, which indicates the progress, when you copy, move, or delete files. It needs the time to calculate the progress, to make the processing time a little longer than no progress bar. Any value except .B 0 and null effects valid. .IP "\fBPS1\fP" Specify the prompt string of input line in .BR EXECUTE_SH . The default value is "\fB$\fP\|\ \|". The following escape sequences are available. .RS 18 .ta 0.5i .nf \fB\eu\fP username \fB(UNIX)\fP \fB\eh\fP hostname \fB(UNIX)\fP \fB\eH\fP hostname (including domain name) \fB(UNIX)\fP \fB\ew\fP fullpath of current directory \fB\e~\fP fullpath of current directory (to simplify home directory with \fB~\fP) \fB\eW\fP current directory name \fB\e!\fP command history number \fB\e$\fP if UID is 0, a \fB#\fP, otherwise a \fB$\fP \fB(UNIX)\fP \fB\e[\fP beginning of non-printing sequence (terminal control character etc.) \fB\e]\fP ending of non-printing sequence \fB\ee\fP ESC (\e033) \fB\e\fP\fIooo\fR character indicated by the octal \fIooo\fR \fB\e\e\fP \e itself .fi .RE .IP "\fBPS2\fP" Specify the prompt string when more continuous input is needed in .BR EXECUTE_SH . The default value is "\fB>\fP\|\ \|". .IP "\fBPS4\fP\(**" Specify the prompt string with which command strings are displayed when you do .B set .BR -x . .IP "\fBPTYINKCODE\fP" Specify the Kanji code for the string passed to the pseudo terminal. The string, which is converted from the Kanji code specified by .B INPUTKCODE to the Kanji code specified by this command, is inputted to any processes running on the pseudo terminal. This variable has the individual value for each pseudo terminal, so that you should change value of the variable on the pseudo terminal to change the input Kanji code of the pseudo terminal running already. .B (UNIX) .RS 18 .ta 1.5i .nf \fBSJIS\fP, \fBsjis\fP Shift JIS \fBEUC\fP, \fBeuc\fP EUC-JP \fBUTF8\fP, \fButf8\fP UTF-8 \fBUTF8-mac\fP, \fBmac\fP UTF-8 for Mac OS X \fBUTF8-iconv\fP UTF-8 for iconv default no convert .fi .RE .IP "\fBPTYMENUKEY\fP" Specify the key to open the pseudo terminal menu while you are handling the pseudo terminal. You can describe the same key name as .B bind command. You can select the following items in the pseudo terminal menu: "SendAsIs", "InputCode", "Break", "NextWindow" and "Kanji". Each item means respectively: sending the pseudo terminal menu key as is, inputting the key name to be sent, terminating forcedly the process running in the pseudo terminal, changing to the next window, invoking the Kana-Kanji IME. In "InputCode", you can use the key name like as .B bind command, and also the Kanji code number used in the Kana-Kanji IME mode. But you cannot select "NextWindow" in the non-split window mode. The default value is not specified. .B (UNIX) .IP "\fBPTYMODE\fP" Use the pseudo terminal to invoke external commands. In the split window mode, the independent pseudo terminals for every windows will be opened and enable you to handle simultaneously multiple external commands via terminals. If the terminal in use can not provide some functions required for the terminal emulation, the pseudo terminal may not work correctly. Any value except .B 0 and null effects valid. .B (UNIX) .IP "\fBPTYOUTKCODE\fP" Specify the Kanji code for the string passed from the pseudo terminal. The string, which is converted from the Kanji code specified by this command to the Kanji code specified by .BR LANGUAGE , is displayed from any processes running on the pseudo terminal. This variable has the individual value for each pseudo terminal, so that you should change value of the variable on the pseudo terminal to change the output Kanji code of the pseudo terminal running already. .B (UNIX) .RS 18 .ta 1.5i .nf \fBSJIS\fP, \fBsjis\fP Shift JIS \fBEUC\fP, \fBeuc\fP EUC-JP \fBUTF8\fP, \fButf8\fP UTF-8 \fBUTF8-mac\fP, \fBmac\fP UTF-8 for Mac OS X \fBUTF8-iconv\fP UTF-8 for iconv default no convert .fi .RE .IP "\fBPTYTERM\fP" Specify the value of .B TERM the environment variable to be passed to external commands, when you use the pseudo terminal. Some .BR termcap (5) or .BR terminfo (5) may cause unexpected behavior of the pseudo terminal, you should specify the effective terminal name in your environment. The default value is .BR vt100 . .B (UNIX) .IP "\fBPWD\fP\(**" The variable for the current directory with the absolute representation. If some value is set, this value will be replaced automatically according to changing the current directory. If no value is set, this value will remain unset. If this is passed as an environment variable when invoked, and this value and the current directory indicate the same directory logically, then it is used as the default value for the current directory. It is useful when you want to specify the logical pathname following symbolic links. .IP "\fBROOTLOGLEVEL\fP" Specify the priority for the log contents of the super user. The default value is .BR 1 . .B (UNIX) .RS 18 .ta 0.8i .nf \fB0\fP no log \fB1\fP only warning such as writing \fB2\fP notice such as changing, and over \fB3\fP info. such as refering, and over >= \fB4\fP debug level, and over .fi .RE .RS The same operation can result as an error to output the log in the lower priority by 1 level. .RE .IP "\fBRRPATH\fP" Display files under the directory mounted by CD-ROM, with the pseudo ISO 9660 RockRidge Extension, for the OS which cannot support RockRidge Extension. You can specify multiple mount points separating with .RB ' : '. You are enough to specify only the top directory mounted by CD-ROM, then the pseudo RockRidge Extension function is valid in all of the directories under that directory. This is no more than a pseudo extension, which only replaces filenames according to TRANS.TBL, and cannot handle some CD-ROM which has an inconsistent TRANS.TBL. No mount point is specified by default. .IP "\fBSAVEDIRHIST\fP" Specify the maximum number saved to the directory history file. The default value is .BR 50 . If this value is .BR 0 , no directory history file is saved. .IP "\fBSAVEHIST\fP" Specify the maximum number saved to the command history file. The default value is .BR 50 . If this value is .BR 0 , no command history file is saved. .IP "\fBSECOND\fP" Display the second in the clock of the title line. But the clock is adjusted correctly every .B 10 seconds, and some gap from the real time will be occurred in this span. Any value except .B 0 and null effects valid. .IP "\fBSHELL\fP" When the filename part of this specified value is .B rfd or .BR rfdsh , the shell becomes a restricted shell as well as .B \-r option when invoked. This variable also specify the shell which can be invoked from .BR EXECUTE_SH . .IP "\fBSIZEINFO\fP" Display the file size information line at the top of screen. The total size displayed here is not the sum of bytes but the sum of disk block size occupied actually. Any value except .B 0 and null effects valid. .IP "\fBSIZEUNIT\fP" Represent the huge file size which overflows the displayed digit with the prefix of the SI unit, as "KB", "MB" and so on. Any value except .B 0 and null effects valid. .IP "\fBSORTTREE\fP" Sort directories in the tree screen. The sorted type specified by .B SORT_DIR is used, but they can not be sorted when it is "by size" or "by timestamp". The directory included in the current directory path is always placed on the top of directory tree, with no regard to the sorted type. Any value except .B 0 and null effects valid. .IP "\fBSORTTYPE\fP" The file list in the browser screen is not sorted by default, but placed in order registered in the directory. This variable specify it to be sorted by default. The following are specifiable values. .RS 18 .ta 0.5i 1i 2i 2.5i .nf \fB0\fP not sort \fB1\fP by filename \fB9\fP by filename(reverse) \fB2\fP by extension \fB10\fP by extension(reverse) \fB3\fP by size \fB11\fP by size(reverse) \fB4\fP by timestamp \fB12\fP by timestamp(reverse) \fB5\fP by length \fB13\fP by length(reverse) \fB100\-113\fP keep the last sorted type \fB200\-213\fP keep it also in archive browser .fi .RE .RS If you specify the value of 100-113, it is sorted according to the value indicated by lower 2 digits just after invoked, the last specified sorted type is kept when moving directory. If you specify the value of 200-213, the last sort type will be kept also after invoking the archive browser. .RE .IP "\fBTERM\fP\(**" Specity the terminal name. When this value is .BR dumb , .B unknown or .BR un , it is regarded as the dumb terminal to suppress any escape sequences in the internal shell in spite of .BR DUMBSHELL . If this value does not exist in .BR termcap (5) and .BR terminfo (5) entry, it is executable only when it is invoked as .BR fdsh . The terminal name will be variable dynamically, then you can re-specify the suitable one as this value after invoked for some strange terminal display and key input. .IP "\fBTHRUARGS\fP" Pass through the pathnames as is, which is specified as the startup arguments. .B Fd expands the meta character such as .B ~ and .B ${#} in the given pathname by itself, because the obsolete low-level shell cannot support these expansion extended by POSIX. .B Fd can sometimes expand the pathname given by the shell into the unexpected string as a result of duplicate expansion, because the latest high-level shell generally support these expansion. This variable will be suppress the expansion of arguments. Any value except .B 0 and null effects valid. .IP "\fBTMPDIR\fP" Specify the working directory where the archiver command temporarily unpack files in the archive file. The default value is .BR /tmp . (On MS-DOS version, The default value is .RB ` . '.) .IP "\fBTMPUMASK\fP" Specify the file creation mask with octal expression for files and directories created temporarily in .BR TMPDIR . But the mask value set by .B umask the builtin command is prior, then actual mask value is the logical OR of this value and .B umask value. .IP "\fBTRADLAYOUT\fP" Use the traditional screen layout based on the original "FD". In this layout, the file size information will be always displayed, whether .B SIZEINFO is set or not. When the screen width is less than .B 80 columns, this specification is invalid. Any value except .B 0 and null effects valid. .IP "\fBUNICODEBUFFER\fP" Hold the UNICODE translation table on memory. It will be fast to access the floppy drive and to translate from/to UTF-8. You should set this if you have enough memory. Any value except .B 0 and null effects valid. .IP "\fBURLDRIVE\fP" Validate the function of the URL drive. Any value except .B 0 and null effects valid. .B (UNIX) .IP "\fBURLKCODE\fP" Specify the Kanji code for filename on the host with the URL drive. .BR JIS8 , .BR JUNET , .BR HEX , .BR CAP , etc. among them are the Kanji codes used in Samba. .B (UNIX) .RS 18 .ta 1.5i .nf \fBSJIS\fP, \fBsjis\fP Shift JIS \fBEUC\fP, \fBeuc\fP EUC-JP \fBJIS\fP, \fBjis\fP 7bit JIS \fBJIS8\fP, \fBjis8\fP 8bit JIS \fBJUNET\fP, \fBjunet\fP ISO-2022-JP \fBOJIS\fP, \fBojis\fP 7bit JIS (JIS C6226-1978 + roman) \fBOJIS8\fP, \fBojis8\fP 8bit JIS (JIS C6226-1978 + roman) \fBOJUNET\fP, \fBojunet\fP ISO-2022-JP (JIS C6226-1978 + roman) \fBHEX\fP, \fBhex\fP HEX \fBCAP\fP, \fBcap\fP CAP \fBUTF8\fP, \fButf8\fP UTF-8 \fBUTF8-mac\fP, \fBmac\fP UTF-8 for Mac OS X \fBUTF8-iconv\fP UTF-8 for iconv default no convert .fi .RE .IP "\fBURLOPTIONS\fP" Specify communication options, when the URL drive communicates with the host. You can select individually whether if PASV, PORT, MDTM, FEAT each commands for the FTP communication are limited or not, or whether if the exact file information is need or not. On the HTTP protocol, you will get the timestamp and size of files with some rounding error in bulk. If you need the exact information, the operations by file will spend the more communication time. The default value is .BR 0 . The following are specifiable values. .B (UNIX) .RS 18 .ta 0.5i 1.3i 2.1i 2.9i 3.7i .nf \fB0\fP standard \fB1\fP PASV \fB2\fP PORT \fB3\fP PASV & PORT \fB4\fP MDTM \fB5\fP PASV & MDTM \fB6\fP PORT & MDTM \fB7\fP PASV & PORT & MDTM \fB8\fP FEAT \fB9\fP PASV & FEAT \fB10\fP PORT & FEAT \fB11\fP PASV & PORT & FEAT \fB12\fP MDTM & FEAT \fB13\fP PASV & MDTM & FEAT \fB14\fP PORT & MDTM & FEAT \fB15\fP PASV & PORT & MDTM & FEAT \fB16\fP HTTP \fB17\fP PASV & HTTP \fB18\fP PORT & HTTP \fB19\fP PASV & PORT & HTTP \fB20\fP MDTM & HTTP \fB21\fP PASV & MDTM & HTTP \fB22\fP PORT & MDTM & HTTP \fB23\fP PASV & PORT & MDTM & HTTP \fB24\fP FEAT & HTTP \fB25\fP PASV & FEAT & HTTP \fB26\fP PORT & FEAT & HTTP \fB27\fP PASV & PORT & FEAT & HTTP \fB28\fP MDTM & FEAT & HTTP \fB29\fP PASV & MDTM & FEAT & HTTP \fB30\fP PORT & MDTM & FEAT & HTTP \fB31\fP PASV & PORT & MDTM & FEAT & HTTP .fi .RE .IP "\fBURLTIMEOUT\fP" Specify the timeout in seconds, when the URL drive communicates with the host. If the communication from the host is lost for the time specified, the communication is regarded as invalid and its connection will be shutdown forcedly. If this value is .B 0 second, the timeout operation is invalid to continue waiting response forever. The default value is .B 0 second. .B (UNIX) .IP "\fBUSEGETCURSOR\fP" Use the VT100 compatible escape sequence getting the cursor position in order to get the terminal size. When the screen size of .B fd doesn't correspond with the terminal size, this variable can be sometimes valid. On some terminals which don't support the escape sequence getting the cursor position, the operation may be stopped. In this case, it is continued by inputting 'R' from the keyboard. Any value except .B 0 and null effects valid. .B (UNIX) .IP "\fBUSESYSLOG\fP" Send the log to .BR syslogd (8) the system logger with the level spacified by .B LOGLEVEL or .BR ROOTLOGLEVEL . The log priority is LOG_ERR only some errors are caused, otherwise the log priority is always LOG_INFO. LOG_USER is used as the facirity if it can be specified. Any value except .B 0 and null effects valid. .B (UNIX) .IP "\fBWIDEDIGIT\fP" Widen the displayed digits for the number of pages and files. The standard displayed digits for the number of pages and files are .B 2 and .B 4 respectively. This expands them into .B 4 and .B 5 respectively. Any value except .B 0 and null effects valid. .IP "\fBWRITEFS\fP" Forbid use of .B WRITE_DIR command. If the value is .BR 1 , the directory is written only when the command is executed intentionally, and you are not confirmed after arranging the file order. If the value is .BR 2 , even writing by the command is invalid, the directory writing is quite forbidden. .IP "\fBSJISPATH\fP" .PD 0 .IP "\fBEUCPATH\fP" .IP "\fBJISPATH\fP" .IP "\fBJIS8PATH\fP" .IP "\fBJUNETPATH\fP" .IP "\fBOJISPATH\fP" .IP "\fBOJIS8PATH\fP" .IP "\fBOJUNETPATH\fP" .IP "\fBHEXPATH\fP" .IP "\fBCAPPATH\fP" .IP "\fBUTF8PATH\fP" .IP "\fBUTF8MACPATH\fP" .IP "\fBUTF8ICONVPATH\fP" .IP "\fBNOCONVPATH\fP" .PD Specify the Kanji code for filename per directory, which is prior to .BR FNAMEKCODE . You can specify multiple pathnames separating with .RB ' : '. You are enough to specify only the top directory where you want to use the Kanji code, then you can use the Kanji code in all of the directories under that directory. In the directory which is described in .BR NOCONVPATH , no Kanji code is converted ignoring the value of .BR FNAMEKCODE . No pathname is specified by default. .B (UNIX) .SH MULTI LANGUAGE SUPPORT .B Fd processes the Kanji character-set to input/output as "EUC-JP" or "Shift JIS" according to setting in compile. The the pathname including Kanji is displayed in consideration for the 2nd byte character in Kanji. You can dynamically select Kanji code to input/output with .BR LANGUAGE , .B INPUTKCODE and .B FNAMEKCODE the internal variable. You can input Japanese string with the Kana-Kanji IME mode. You can use Kanji in the command macro and the command string, but cannot use Kanji as the value of the internal variables. You cannot use the multibyte symbol character as the meta character, such as .RB ' % ' and '\fB"\fP' and so on, Kanji character is not counted as 1 character in the wildcard search. And when you give the non-standard Kanji code for the OS to the shell with the parameter macro such as .BR %JJ , some Kanji is converted into the code including the meta character such as .RB ' $ ' and .RB ' \e ' and so on, to cause unexpected behavior. In that case, you can probably avoid it by quoting the string to be converted with .BR %' . .SH AUTHOR Takashi SHIRAI .br The original "FD" for MS-DOS was created and released by A.Idei for the first time, in 1989. .B Fd was created for UNIX from scratch following that implementation, in 1995. .SH FILES .PD 0 .TP 10 .B /etc/fd2rc The systemwide initial configuration file for .B fd .TP .B ~/.fd2rc The individual initial configuration file for .B fd .TP .B ~/.fdshrc The individual initial configuration file for .B fdsh .TP .B ~/.fd_history The command history file by default .TP .B ~/.fd_freq The translation frequency file by default for the users Kana-Kanji translation learning .TP .B /bin/sh The user shell when .B SHELL the environment variable is undefined .TP .B /bin/rm The command to remove temporary files when abort .TP .B /tmp/fd\(** The temporary directory to unpack the archive file .TP .B fd\-unicd.tbl The UNICODE translation table, which is installed in the same directory as the executable binary of .B fd .TP .B fd\-dict.tbl The Kana-Kanji translation dictionary file, which is installed in the same directory as the executable binary of .B fd .TP .B fd2rc The systemwide initial configuration file for .B fd on MS-DOS version, which must be prepared in the same directory as the executable binary of .B fd .TP .B $HOME\efd2.rc The individual initial configuration file for .B fd on MS-DOS version .TP .B $HOME\efdsh.rc The individual initial configuration file for .B fdsh on MS-DOS version .TP .B $HOME\efd.hst The command history file on MS-DOS version by default .PD .SH LIMITATIONS Some terminals cannot send the input of certain function keys and special keys. The sequence compatible with .B VT200 is assigned as the default sequence which is not registered in .BR termcap (5), and when the terminal cannot support this, the key receipt or the screen control due to be brought by this is not available. .SH SEE ALSO .BR sh (1), .BR echo (1), .BR test (1), .BR ls (1), .BR rm (1), .BR tar (1), .BR compress (1), .BR zcat (1), .BR gzip (1), .BR gunzip (1), .BR lha (1), .BR login (1), .BR newgrp (1), .BR stty (1), .BR umask (2), .BR termcap (5), .BR terminfo (5), .BR syslogd (8) .SH BUGS When files in an archive file are packed with a pathname including ".\|.", the archive browser cannot work normally. The symbolic links in an archive file cannot be unpacked individually. The user interface is cheap. .SH COPYRIGHT Copyright (C) 1995-2014 by Takashi SHIRAI