Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 6e204a966e8c42d976f99a1700ce5f20 > files > 4085

ghc-7.4.2-4.mga5.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>System.Cmd</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_System-Cmd.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">process-1.1.0.1: Process libraries</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Maintainer</th><td>libraries@haskell.org</td></tr><tr><th>Safe Haskell</th><td>Trustworthy</td></tr></table><p class="caption">System.Cmd</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Executing an external command.
</p><p>This module provides a simple interface for executing external commands.
 For a more complex, but more powerful, interface, see the <a href="System-Process.html">System.Process</a>
 module.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:system">system</a> :: <a href="../base-4.5.1.0/Data-String.html#t:String">String</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="../base-4.5.1.0/System-Exit.html#t:ExitCode">ExitCode</a></li><li class="src short"><a href="#v:rawSystem">rawSystem</a> :: <a href="../base-4.5.1.0/Data-String.html#t:String">String</a> -&gt; [<a href="../base-4.5.1.0/Data-String.html#t:String">String</a>] -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="../base-4.5.1.0/System-Exit.html#t:ExitCode">ExitCode</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:system" class="def">system</a> :: <a href="../base-4.5.1.0/Data-String.html#t:String">String</a> -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="../base-4.5.1.0/System-Exit.html#t:ExitCode">ExitCode</a></p><div class="doc"><p>Computation <code>system cmd</code> returns the exit code produced when the
operating system runs the shell command <code>cmd</code>.
</p><p>This computation may fail with
</p><ul><li> <code>PermissionDenied</code>: The process has insufficient privileges to
     perform the operation.
</li><li> <code>ResourceExhausted</code>: Insufficient resources are available to
     perform the operation.
</li><li> <code>UnsupportedOperation</code>: The implementation does not support
     system calls.
</li></ul><p>On Windows, <code><a href="System-Cmd.html#v:system">system</a></code> passes the command to the Windows command
interpreter (<code>CMD.EXE</code> or <code>COMMAND.COM</code>), hence Unixy shell tricks
will not work.
</p></div></div><div class="top"><p class="src"><a name="v:rawSystem" class="def">rawSystem</a> :: <a href="../base-4.5.1.0/Data-String.html#t:String">String</a> -&gt; [<a href="../base-4.5.1.0/Data-String.html#t:String">String</a>] -&gt; <a href="../base-4.5.1.0/System-IO.html#t:IO">IO</a> <a href="../base-4.5.1.0/System-Exit.html#t:ExitCode">ExitCode</a></p><div class="doc"><p>The computation <code><code><a href="System-Cmd.html#v:rawSystem">rawSystem</a></code> cmd args</code> runs the operating system command
<code>cmd</code> in such a way that it receives as arguments the <code>args</code> strings
exactly as given, with no funny escaping or shell meta-syntax expansion.
It will therefore behave more portably between operating systems than <code><a href="System-Cmd.html#v:system">system</a></code>.
</p><p>The return codes and possible failures are the same as for <code><a href="System-Cmd.html#v:system">system</a></code>.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.11.0</p></div></body></html>