| rmbi | Index Level | vi |
| Syntax | unix {-options} {unix.cmd} {{pick.file pick.item}} |
| Category | Unix |
| Type | Verb |
| Description |
invokes the "sh" (Unix) command, to 'push' a shell, and automatically returns to Pick upon completion.
On release 7.0 and higher, the user can specify an optional command string to the Unix command. This command string can include Pick file and item pairs which will interact with the specified Unix command exactly as if those parameters were Unix files. Any changes made to the specified parameters by the Unix command will also be reflected in the Pick items after the command has completed. During the substitution of Pick items for Unix files, attribute marks are converted to new-lines and groups of 4 spaces are converted to tabs. When items are brought back from the Unix command, these conversions are reversed. Options can be placed after a dash as the first argument on the command line or can be put into attribute 6 of the "unix" master dictionary item. |
| Options |
{number} Indicates the number of spaces which represent a tab.
c Do not convert attribute marks to new-lines and vice-versa. i Use item name as export tag. This is useful when a Unix based word-processing package is used and it is desirable that the filename eventually passed to that package be related to the original Pick item name. n No tab conversion. v Convert value marks to new-lines. Note that this conversion is one-way and will lose the value marks at the completion of the command. |
| See Also | vi unix |
| Example |
unix spell {ba,doc, stock.report} > {dm,pointer-file, sp}
This example creates a list of all mis-spelled words existing in the Pick item "stock.report" and places that list into an item called "sp" in the "pointer-file". unix -2 emacs {bp my.prog} This allows editing the "my.prog" item with the "emacs" editor. After exiting "emacs", any modifications to data will be updated in "my.prog". |
| Warnings |
This command can be a bit expensive when items with a total size of over about 40-50Kbytes. In this case, it is recommended to re-compile "dm,bp, unix" with the "(fo" options so that this program runs with FlashBASIC. This will significantly decrease the response time of this command.
When using a Unix editor with tabulation on a Pick item, it is important to use ONLY tabs or ONLY spaces to align text as mixing spaces and tabs may cause inconsistant results when the item is updated back into the Pick item. |
| Compatibility | D3/Unix D3 7.0 |
| rmbi | Index Level | vi |