This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Backticks hang with dynamic antivirus scanning
- From: "Mike Kenny - BCX - Infrastructure Services" <Mike dot Kenny at bcx dot co dot za>
- To: "geneSmith" <gene dot smith at sea dot siemens dot com>, <cygwin at cygwin dot com>
- Date: Wed, 18 Aug 2004 14:13:06 +0200
- Subject: RE: Backticks hang with dynamic antivirus scanning
You could try replacing all of your `command` syntax with $(command).
AFAIK, this was introduced with ksh way way back. The back tick support
was kept for compatibility with older bourne shell scripts. But at that time
AT&T were recommending $() syntax, though they also recommended that
root should use /bin/sh not /bin/ksh, go figure.
Anyway the replacement should work for scripts that you are developing.
If you have a large number of existing scripts maybe something like
sed -e "s/`.*`/$(&)/g"
(this might require a lot of excapes to work, YMMV)
> -----Original Message-----
> From: cygwin-owner@cygwin.com
> [mailto:cygwin-owner@cygwin.com]On Behalf
> Of geneSmith
> Sent: Tuesday, August 17, 2004 10:48 PM
> To: cygwin@cygwin.com
> Subject: Re: Backticks hang with dynamic antivirus scanning
>
>
> Marco Moreno wrote, On 2/20/2004 11:46 PM:
>
> > I recently upgraded cygwin to the latest version and now I'm having
> > Command's dynamic antivirus protection conflict with Cygwin
> so that it
> > hangs whenever it encounters backticks in a shell script (e.g.
> > /etc/profile). Configuring the antivirus to ignore c:\cygwin had no
> > effect. If I disable dynamic virus protection, all is well.
> >
> > Has anyone else encountered this? Has anything changed in
> how backticks
> > are handled that might cause it to conflict with antivirus software?
> > Just trying to get a handle on this to submit a bug report
> to Command
> > Software. (Though I'm not holding my breath that they'll offer a
> > solution other than to avoid cygwin.)
> >
> > Thanks,
> >
> > Marco Moreno
> >
> >
>
> No one answered this back in Feb that I could tell. I am seeing a
> possibly related or similar problem. I am trying to build a
> large shall
> script based project under cygwin called RTEMS. It has been reported
> that anti-virus can somehow affect the build and cause almost random
> errors. I can't disable my a.v. since it requires a secret p/w. Could
> this really be the problem?
>
> --
> Lit up like Levy's
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/