#!/bin/bash

# Script to invoke rm on file passed in.  This script is intended for use
# by Code Update and will invoke a remove on a file.
#
#Usage: rmUPD [OPTION]... FILE...
#Remove (unlink) the FILE(s).
#
#  -d, --directory       unlink FILE, even if it is a non-empty directory
#                          (super-user only; this works only if your system
#                           supports `unlink' for nonempty directories)
#  -f, --force           ignore nonexistent files, never prompt
#  -i, --interactive     prompt before any removal
#      --no-preserve-root do not treat `/' specially (the default)
#      --preserve-root   fail to operate recursively on `/'
#  -r, -R, --recursive   remove the contents of directories recursively
#  -v, --verbose         explain what is being done
#      --help     display this help and exit
#      --version  output version information and exit
#
#To remove a file whose name starts with a `-', for example `-foo',
#use one of these commands:
#  rm -- -foo
#
#  rm ./-foo
#
#Note that if you use rm to remove a file, it is usually possible to recover
#the contents of that file.  If you want more assurance that the contents are
#truly unrecoverable, consider using shred.
#
# Exit status = 0 if no errors occur; non-zero otherwise.
#
# Module History:
# 00 08/03/2006  E. Leet     Initial release
# 01 09/26/2006  M. Antes    572107 - exit with return code from command

actzTrace "ESA    T: -> rmUPD $*"

/bin/rm $*
cmdRC=$?

actzTrace 'ESA    T: <- rmUPD'

exit $cmdRC
