Re: 38
On Fri, Aug 27, 2010 at 09:58:22AM +0200, Adam Borowski 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).
>
> touch "o rly?"
>
> While many of these are false alarms (numbers, fixed names, ...), the
> problem is real.
[skipped]
Have you noticed what I have written above in brackets? The obvious
things you mentioned are bugs and must be fixed, of course. It does
not invalidate the use of unquoted $var, however, when one needs it
for an effect.
--
Stanislav
Reply to:
- References:
- 38
- From: posion bit <poisonbit@gmail.com>
- Re: 38
- From: Stanislav Maslovski <stanislav.maslovski@gmail.com>
- Re: 38
- From: Adam Borowski <kilobyte@angband.pl>