-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2010-06-16 19:39, David C. Rankin wrote:
Guys (DNH),
...
dumpSTR="lynx -dump $url ${rpmSTR}${debugSTR}| grep http | sed -e 's/^.*\shttp/http/'${dirSTR}"
Which gives the perfectly correct command line (rpm and nodebug options):
lynx -dump http://madwifi-project.org/suse/11.0/x86_64 | grep -e '^.*rpm$' | grep -v 'debugsource' | grep -v 'debuginfo' | grep http | sed -e 's/^.*\shttp/http/' -e '/\/$/d'
But when attempting to execute 'dumpSTR' within the script, I end up with an invalid option error from lynx:
lynx: Invalid Option: -e
Basically, lynx is considering everything in the string as options to lynx instead of recognizing the pipe. I have checked all lynx options hoping for a '--' option to say end of options, but no joy. Is there a trick that will work here. I'm sure there is, but I just don't understand it yet. What say the gurus?
I'm not an expert, I did not understand all your logic on my light read. However, I know this: pipes are interpreted by the shell. If lynx is seeing behind the 1st pipe symbol, it means that bash is not seeing it first. Maybe bash does not intervene in the line execution? - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iF4EAREIAAYFAkwZE1sACgkQja8UbcUWM1wseAD9G/EIa4gcEkLJ1mUDe6b6zmJK Ei0qmLoZz6scUw9c/yYA/RFUfDmBOPkaahkwDHjoNCrbtN7hAGxxRcni48kaYMr9 =YUWG -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org