Mail Archives: cygwin/1999/04/23/11:39:50
I applied the fix that I missed from your changes, with a slight modification:
if test -z "`echo \":$lddpath:\" | $to_lower | grep \":$lower_dir:\"`"
instead of:
if test -z "`echo ":$lddpath:" | $to_lower | grep ":$lower_dir:"`"
I think the mismatched quotes were confusing me... and I quite (pleasantly)
surprised that bash knows what to do with this =)O|
Anyway, the attached ldd can now be run on files with spaces embedded in their
paths.
Thanks Eugene,
Gary.
--=-=-=
Content-Type: application/x-sh;
name=ldd
Content-Disposition: attachment;
filename=ldd
Content-Transfer-Encoding: base64
Content-Description: unix ldd-a-like for cygwin
IyEgL2Jpbi9zaA0KIyAgLSotIE1vZGU6IFNoIC0qLSANCiMgLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0K
IyBsZGQgLS0tIGFuIHVuaXggbGRkKDEpIHdvcmstYWxpa2UgZm9yIGN5Z3dpbg0KIw0KIyBB
dXRob3I6CSAgICAgIEdhcnkgVi4gVmF1Z2hhbiA8Z2FyeXZAb3JhbmRhLmRlbW9uLmNvLnVr
Pg0KIyBNYWludGFpbmVyOgkgICAgICBHYXJ5IFYuIFZhdWdoYW4gPGdhcnl2QG9yYW5kYS5k
ZW1vbi5jby51az4NCiMgQ3JlYXRlZDoJICAgICAgVHVlIERlYyAgOCAwODo0MzowMCAxOTk4
DQojIExhc3QgTW9kaWZpZWQ6ICAgICAgVGh1IEFwciAyMiAxMDoyNjowOCAxOTk5CQkJCSAg
ICAgIA0KIyAgICAgICAgICAgIGJ5OiAgICAgIEdhcnkgVi4gVmF1Z2hhbiA8Z2FyeXZAb3Jh
bmRhLmRlbW9uLmNvLnVrPgkgICAgICANCiMNCiMgLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KIyBAKCMp
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jaGFyYWN0ZXJzIGZvciB0aGUgZXZhbCBiZWxvdw0KICAgIHBhdGg9YGVjaG8gJHBh
dGh8c2VkIC1lICIkc2VkX3F1b3RlX3N1YnN0ImANCiAgICANCiAgICAjIGV4dHJhY3QgZGVw
ZW5kZW5jaWVzIGZyb20gY3VycmVudCBvYmplY3QNCiAgICBuZXc9YGV2YWwgJHtPQkpEVU1Q
fSAke09CSkRVTVBfRkxBR1N9IFwiIiRwYXRoIlwiIFwNCgkgfCBncmVwICIkUkVfZGxsIiAg
fCBzZWQgInMsJFJFX2RsbCwsIiB8ICR0b19sb3dlcmANCiAgICBuZXdvYmplY3RzPSIkbmV3
ICRuZXdvYmplY3RzIg0KICAgIHNlZW49IiRzZWVuICRvYmplY3QiDQogICAgcGF0aD0iIg0K
DQogICAgIyBvbmx5IGFkZCBORVdPQkpFQ1RTIHRoYXQgd2UgaGF2ZSBub3Qgc2VlbiB5ZXQN
CiAgICBuZXc9IiINCiAgICBmb3IgcGVuZGluZyBpbiAkbmV3b2JqZWN0czsgZG8NCiAgICAg
IHRlc3QgLXogImBlY2hvIFwiICRzZWVuICRuZXcgXCIgfCBncmVwIFwiICRwZW5kaW5nIFwi
YCIgJiYgbmV3PSIkbmV3ICRwZW5kaW5nIg0KICAgIGRvbmUNCiAgICBuZXdvYmplY3RzPSRu
ZXcNCiAgZG9uZQ0KICANCiAgIyBtYWludGFpbiB0aGUgbG9vcCBpbnZhcmlhbnRzDQogIG9i
amVjdHM9IiRuZXdvYmplY3RzIg0KZG9uZQ0KDQpleGl0IDANCg0KIyBsZGQgZW5kcyBoZXJl
DQo=
--
___ _ ___ __ _
/ __|__ _ _ ___ _| | / / | / /_ _ _ _ __ _| |_ __ _ ___
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
\___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
PGP Key from/___/ /___/
http://www.cl.cam.ac.uk/PGP/pks-commands.html#extract
http://pgp.ai.mit.edu/~bal/pks-commands.html#extract
--=-=-=
Content-Type: text/plain; charset=us-ascii
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
--=-=-=--
- Raw text -