I would appreciate it if anyone could offer a solution to the syntax:
Code: Select all
if [ 0 -lt ${size} 2>> ${Trash} ] ; then
greywolf.
Code: Select all
if [ 0 -lt ${size} 2>> ${Trash} ] ; then
Code: Select all
if [ 0 -lt ${size} ] ; then
Thanks, Adrian. You were spot on. I found my old bash scripting guide which confirms same.Adrian wrote:I think you left a blank between the redirection and ${Trash} you should write 2>>${Trash}
However I don't see the point of redirecting the stderr, there's no stderr for a comparison as far as I know, you should probably just use:Code: Select all
if [ 0 -lt ${size} ] ; then