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

Re: 38

On 27.08.2010 10:09, posion bit wrote:
On Fri, Aug 27, 2010 at 9:58 AM, Adam Borowski<kilobyte@angband.pl>  wrote:
On Fri, Aug 27, 2010 at 10:30:07AM +0400, Stanislav Maslovski wrote:
On Fri, Aug 27, 2010 at 12:22:08AM +0200, posion bit wrote:
There are 38 unquoted $i in /etc in i386 installing base+laptop+standar

There are 172 "$i" (maching without spaces around) 38 of them matches
whit spaces around (unquoted).

Some are iteration numbers, some are directory, files, etc...

     grep -R ' $i ' /etc/ | grep -viE '(binary|no such)'

So, what is the problem with this? Both usages are legitimate (if one
understands what she is doing, of course).

look one so simple in /etc/init.d/rc

                         for i in /etc/rc$runlevel.d/K$level*
                                 # Check if the script is there.
                                 [ ! -f $i ]&&  continue

The [ ! -f $i ] is not going to make what she was meaning (thinking
she know what she was doing)

why no?

IMHO I still think it is save and intentional.


Reply to: