HsShellScript

Command Line Arguments

Paths and Directories

mkdir

rmdir

pwd

cd

realpath

realpath_s

path_exists

path_exists'

is_file

is_dir

with_wd

Parsing and Composing Paths

Symbolic Links

is_symlink

symlink

readlink

readlink'

Manipulating Files

rm

chmod

chown

cp

mv

rename

rename_mv

force_rename

force_mv

force_rename_mv

force_cmd

force_writeable

force_writeable2

getFileStatus'

fileAccess'

setFileMode'

Interfaces to Some Specific External Commands

mt_status

fdupes

du

Calling External Programs

Running a Subroutine in a Separate Process

About the exec Functions

Functions for Forking Child Processes and Calling External Programs

subproc

spawn

runprog

data RunError

show_runerror

to_ioe

as_ioe

exec

execp

exece

execpe

echo

silently

system_runprog

system_throw

execute_file

child

explain_processstatus

call

run

Redirecting Input and Output

(->-)

(->>-)

(=>-)

(=>>-)

(-<-)

(-&>-)

(-&>>-)

err_to_out

out_to_err

Pipes

File Descriptors in Pipes

Pipe Creation Functions

(-|-)

(=|-)

(-|=)

(=|=)

redirect

pipe_to

h_pipe_to

pipe_from

lazy_pipe_from

h_pipe_from

pipe_from2

lazy_pipe_from2

h_pipe_from2

pipes

Shell-like Quoting

Creating temporary files and directories

tmp_file

tmp_dir

temp_file

temp_dir

temp_path

with_tmp_file

with_tmp_dir

with_temp_file

with_temp_dir

Reading mount information

data Mntent

read_mounts

read_mtab

read_fstab

Output to the standard stream, colorful logging and error reporting

outm

outm_

logm

logm_

errm

errm_

isatty

terminal_width

terminal_width_ioe

Miscellaneous

zeros

chomp

lazy_contents

contents

glob

glob_quote

Error Handling

mainwrapper

errno

strerror

perror'

perror

_exit

failIO

exitcode

throwErrno'

show_ioerror

fill_in_filename

fill_in_location

add_location