Ignore:
Timestamp:
03/12/08 16:14:23 (14 years ago)
Author:
Kon Lovett
Message:

Rmvd dep procs. Updated doc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/3/misc-extn/trunk/misc-extn.html

    r8077 r9512  
    265265<dt class="definition"><strong>procedure:</strong> (unzip-alist ALIST)</dt>
    266266<dd>
    267 <p>Returns 2 values, a list of the keys &amp; a list of the values from
    268           the <tt>ALIST</tt>.</p></dd>
     267<p>Returns 2 values, a list of the keys &amp; a list of the values from the <tt>ALIST</tt>.</p></dd>
    269268<dt class="definition"><strong>procedure:</strong> (zip-alist KEYS VALUES)</dt>
    270269<dd>
     
    347346<div class="subsection">
    348347<h4>Directories</h4>
     348<div class="section">
     349<h3>Usage</h3>(require-extension misc-extn-directory)</div>
    349350<dt class="definition"><strong>procedure:</strong> (push-directory DIRECTORY)</dt>
    350351<dd>
     
    359360<dd>
    360361<p>Ensures the directory pathname <tt>DIRECTORY</tt> exists.</p>
    361 <p>Like the UNIX `&quot;mkdir -p DIRECTORY&quot; command.</p></dd>
     362<p>Like the *NIX `&quot;mkdir -p DIRECTORY&quot; command.</p></dd>
    362363<dt class="definition"><strong>procedure:</strong> (create-pathname-directory PATHNAME)</dt>
    363364<dd>
    364365<p>Ensures the directory component of <tt>PATHNAME</tt> exist.</p>
    365 <p>Like the UNIX `&quot;mkdir -p `dirname PATHNAME`&quot; command.</p></dd>
     366<p>Like the *NIX `&quot;mkdir -p `dirname PATHNAME`&quot; command.</p></dd>
    366367<dt class="definition"><strong>procedure:</strong> (make-program-filename COMMAND)</dt>
    367368<dd>
    368369<p>Returns the platform specific form of an executable command filename.</p>
    369370<p>On Windows the <code>exe</code> extension is added unless an extension is already present. Does nothing on other platforms.</p></dd>
     371<dt class="definition"><strong>procedure:</strong> (make-shell-filename COMMAND)</dt>
     372<dd>
     373<p>Returns the platform specific form of a shell command filename.</p>
     374<p>On Windows the <code>bat</code> extension is added unless an extension is already present. On *NIX platforms adds <code>.sh</code>.</p></dd>
    370375<dt class="definition"><strong>procedure:</strong> (file-exists/directory? FILENAME [DIRECTORY | DIRECTORY-LIST])</dt>
    371376<dd>
     
    381386<p>Returns a list of all pathnames found for <tt>COMMAND-NAME</tt> in the supplied directory/directories, or <code>#f</code> when not found.</p>
    382387<p>Uses <code>make-program-filename</code> to make a filename.</p>
     388<p>On Windows also uses <code>make-shell-filename</code> to make a filename.</p>
    383389<p>Does not ensure that the file is executable!</p></dd>
    384 <dt class="definition"><strong>procedure:</strong> (which-command-pathname COMMAND-NAME [ENVIRONMENT-VARIABLE PATH])</dt>
    385 <dd>
    386 <p>Returns the first directory in the <tt>ENVIRONMENT-VARIABLE</tt> where a file named <tt>COMMAND-NAME</tt> exists, or <code>#f</code> when nothing found.</p>
    387 <p>Uses the platform specific PATH environment variable element separator - a semi-colon for Windows, &amp; a colon otherwise.</p>
    388 <p>Like the UNIX &quot;which COMMAND-NAME&quot; command.</p></dd>
     390<dt class="definition"><strong>procedure:</strong> (which-command-pathnames COMMAND-NAME [ENVIRONMENT-VARIABLE])</dt>
     391<dd>
     392<p>Returns the pathnames of <tt>COMMAND-NAME</tt> in the <tt>ENVIRONMENT-VARIABLE</tt> where the file exists, or <code>#f</code> when nothing found.</p>
     393<p>The default <tt>ENVIRONMENT-VARIABLE</tt> is <code>&quot;PATH&quot;</code>.</p>
     394<p>Uses the platform specific &quot;PATH&quot; environment variable element separator - a ';' for Windows, &amp; a ':' otherwise.</p></dd>
     395<dt class="definition"><strong>procedure:</strong> (which-command-pathname COMMAND-NAME [ENVIRONMENT-VARIABLE])</dt>
     396<dd>
     397<p>Same as <code>which-command-pathnames</code> but returns the first pathname only.</p>
     398<p>Like the *NIX &quot;which COMMAND-NAME&quot; command.</p></dd>
    389399<dt class="definition"><strong>procedure:</strong> (remove-dotfiles FILES)</dt>
    390400<dd>
Note: See TracChangeset for help on using the changeset viewer.