bug with console mode

??? As I use avast in console mode , I meet a problem with some files names.

As I want to scan folder : /mnt/hda1/my files
I write avast -a -c -t=A /mnt/hda1/my\ files

Avast answers : /mnt/hda1/my does not exist
\files dos not exist

It seems there is a bug with long names ::slight_smile:

Have you been reported this problem ?

Won’t this work?

-a -c -t=A “/mnt/hda1/my files”
or
-a -c -t=A “/mnt/hda1/my files/”

no , it does not work :

/mnt/hda1/my [scan error : no such file or directory]
files/ [scan error : invalid argument]

very strange isn’t it ? ???

Will someone propose me a solution ?

if it is a bug , Avast should fix it :wink:

“avast” is a double-wrapper around avastcmd-derived scanner, not directly an executable application.
the “flaw” was a consequence of $* expansion in its wrapper script, the app itself is OK.

change the last line of the script (/usr/lib/avast4workstation/bin/wrapper-script.sh) from:
$AVAST_PREFIX/bin/$programname $*

to
$AVAST_PREFIX/bin/$programname “$@”

thanks for the report, pupusse!

regards,
PC

:slight_smile: very fine !!! it works :slight_smile:

now the long-named files are scanned in console mode

Many thanx :smiley: