bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-d option not working. . .?


From: Michael Williams
Subject: -d option not working. . .?
Date: Tue, 11 Sep 2007 21:51:59 -0400

Hi All,

I've got a script that I'm trying to set up, but it keeps telling me that "[-d command not found". Can someone please explain what is wrong with this?:




#!/bin/sh

for i in $*
do
{
        if  [-d $i]
        then
                echo "$i is a directory! Yay!"
        else
                echo "$i is not a directory!"
        fi
}
done



Regards,
Michael




reply via email to

[Prev in Thread] Current Thread [Next in Thread]