Walt Mankowski via plug on 5 Nov 2019 11:23:36 -0800


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

[PLUG] Weird shell script bug


Hi everyone,

I've got a weird shell script error that I hope someone can help me
figure out. I can go into more detail about why I'm trying to do this,
but afaict this is xcthe basic problem:

I've got a shell script that's setting LD_LIBRARY_PATH and then
running

  exec /bin/sh $*

$* is set to "-c ../build/foo.exe bar baz".

When foo.exe runs it thinks argv==1 and it doesn't see any of the
other parameters, and so it aborts.

What am I doing wrong?

Walt

Attachment: signature.asc
Description: PGP signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug