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

Re: OT: Odd Perl (rm?) behavior



>>>>> "Alex" == Alex Malinovich <demonbane@the-love-shack.net> writes:

[...]

Alex> However, if I expand the idea a bit and do:

Alex> rm -v `ls /mydir |spcgobble.pl`

It works if you use xargs instead.

# ls /mydir | spcgobble.pl | xargs rm -v

I guess that the backtick operator doesn't grok escaping and quoting,
which is weird.  I tried both tcsh and bash.

-- 
Hubert Chan <hubert@uhoreg.ca> - http://www.uhoreg.ca/
PGP/GnuPG key: 1024D/124B61FA
Fingerprint: 96C5 012F 5F74 A5F7 1FF7  5291 AF29 C719 124B 61FA
Key available at wwwkeys.pgp.net.   Encrypted e-mail preferred.

Attachment: pgp4XasIVdFxL.pgp
Description: PGP signature


Reply to: