tcl.unix Verb: Access/Unix

tcl.unix

Command tcl.unix Verb: Access/Unix
Applicable release versions: AP/Unix, AP 6.2
Category Unix (24)
Description invokes the "sh" (Unix) command, to 'push' a shell, and automatically returns to Pick upon completion.

To return to Pick, type 'exit' at the Unix prompt.

On versions of Advanced Pick 6.2 and above, 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.
Syntax unix {-options} {unix.cmd} {{pick.file pick.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 loose the value marks at the completion of the command.
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".
Purpose
Related tcl.vi
tcl.unix.link