On Mon, Mar 26, 2012 at 01:56:22PM +0200, Andreas Schwab wrote:
> Denys Vlasenko <vda.linux-gM/[email protected]> writes:
> 
> > Hi Dmitry,
> >
> >  for file in "$logfile".*; do
> >         [ -f "$file" ] || continue
> > -       suffix=${file:1+$pfxlen}
> > -       [ "$suffix" -gt 0 ] 2> /dev/null || {
> > -               echo "Skipped file '$file' (bad suffix)" >&2
> > +       suffix=${file#$logfile.}
> >
> > suffix=${file#$logfile.} is not a good way to strip $logfile prefix:
> > ${var#pattern} operation interprets <pattern>, indeed, as glob pattern.
> 
> Unless quoted.
> 
> > Try this:
> >
> > logfile="????"
> > file=FILE.123
> > suffix=${file#$logfile.}
>   suffix=${file#"$logfile".}

Thanks, I've pushed this fix.


-- 
ldv

Attachment: pgp6j3anjNGM8.pgp
Description: PGP signature

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to