This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mknetrel issues


Christopher Faylor wrote:
> On Sat, Jun 14, 2003 at 07:50:22PM -0400, Igor Pechtchanski wrote:
>> Actually, I've just had another look at this, and it seems that the
>> unquoting is due to the "eval" in the sudo() function.  I was able to
>> reproduce Max's problem.  Removing the "eval" call (using just "$@" as
the
>> command) works for me, i.e.:
>>
>> sudo() {
>>    "$@"
>> }
>>
>> produces the expected results.
>
> Ok.  I'll make that change.  I assume that sudo is newer than extra/gcc
> so that explains why gcc didn't work.  I haven't rebuilt gcc in some time.

For parity, this change too:

Index: mknetrel
===================================================================
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/mknetrel/bin/mknetrel,v
retrieving revision 1.46
diff -u -p -r1.46 mknetrel
--- mknetrel 14 Jun 2003 23:55:44 -0000 1.46
+++ mknetrel 15 Jun 2003 00:47:50 -0000
@@ -49,7 +49,7 @@ tar() {
 }

 read_user_config() {
-    sudo() { eval "$@"; }
+    sudo() { "$@"; }
     [ -r "$HOME/.mknetrel" ] && . "$HOME/.mknetrel"
     case "`uname -s`" in
  CYGWIN*) iscygwin() { :; } ;;




Max.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]