>>>>> Justus Winter <4win...@informatik.uni-hamburg.de> writes:
[…] > * utils/fakeroot.sh: Escape arguments handed to /bin/sh so that they > are not evaluated prematurely. […] > exec /bin/settrans --chroot \ > - /bin/fakeauth /bin/sh -c "cd `pwd`; $*" \ > + /bin/fakeauth /bin/sh -c "cd `pwd`; exec ${TARGET}" \ > -- / /hurd/fakeroot … This made me wonder if we can avoid making a single string of the command passed, just for the /bin/sh to parse it later? Like (untested): exec /bin/settrans --chroot \ /bin/fakeauth /bin/sh \ -c 'cd "$1" || exit ; shift ; exec "$@"' \ dummy.sh "$(pwd)" "$@" \ -- / /hurd/fakeroot (Also to note is that `pwd` may generally contain whitespace characters, and thus should be double-quoted, too.) -- FSF associate member #7257 http://sf-day.org/ -- To UNSUBSCRIBE, email to debian-hurd-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87haed3guc....@violet.siamics.net