RE: nfs-server-config died (Attn: nfs-server maintainer)

2006-01-12 Thread Robb, Sam
> On Thu, 12 Jan 2006, Hiroki Sakagami wrote:
> 
> > When I executed /usr/bin/nfs-server-config, it died around line 223
> > due to the assignment to readonly variable $UID.  Is this a known
> > issue?
> >
> > The version of the package is nfs-server-2.3-3.
> 
> This probably has to do with the switch of /bin/sh from ash 
> to bash.  UID
> is a reserved variable in bash, but not in ash.  The variable 
> needs to be
> renamed.  Sam?

You learn something new every day.  Thanks for explaining this,
Igor :-)

Actually, the variable can be eliminated - it was left over from
a previous version of the script, and isn't actually referenced.

For now, you should be able to comment out (or delete) the line
that makes the assignment to the UID variable.  I'll see about
getting a new version of nfs-server out with this fix later today.

-Samrobb

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: nfs-server-config died (Attn: nfs-server maintainer)

2006-01-12 Thread Igor Peshansky
On Thu, 12 Jan 2006, Hiroki Sakagami wrote:

> When I executed /usr/bin/nfs-server-config, it died around line 223
> due to the assignment to readonly variable $UID.  Is this a known
> issue?
>
> The version of the package is nfs-server-2.3-3.

This probably has to do with the switch of /bin/sh from ash to bash.  UID
is a reserved variable in bash, but not in ash.  The variable needs to be
renamed.  Sam?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/