[comp.unix.shell] tcsh 5.20.02 bug with sun3-OS4.1.1 make ?

gplan@sol.aer.com (George A. Planansky) (06/13/91)

An error ("unreadable") occurs using command line arguments to make 
with tcsh, but not with csh, as listed below.  Anyone know what is wrong?

Sun3/60 SunOS 4.1.1 make 
tcsh 5.20.02 (Cornell) 12/07/90 options 8b,nls,el,dl,al,dir

In tcshell:

  cirrus[235]#make -n LIBDIR=$gnu/lib/emacs

  LIBDIR=/usr/local/gnu/ unreadable

  LIBDIR=/usr/local/gnu/lib/ unreadable
  /bin/sed 's;/usr/local/emacs;/usr/local/gnu/lib/emacs;g' < src/paths.h-dist > src/paths.h
  cd etc; make  all
  cd src; make  all

In cshell:

  cirrus[236]#csh
  cirrus(201)#make -n LIBDIR=$gnu/lib/emacs
  /bin/sed 's;/usr/local/emacs;/usr/local/gnu/lib/emacs;g' < src/paths.h-dist > src/paths.h
  cd etc; make  all
  cd src; make  all

--
George Planansky                       
Atmospheric & Environmental Research        
Cambridge, MA 02139
gplanansky@aer.com   (617) 547-6207

christos@theory.TC.Cornell.EDU (Christos S. Zoulas) (06/13/91)

In article <GPLAN.91Jun12153907@sol.aer.com> gplan@sol.aer.com (George A. Planansky) writes:
>An error ("unreadable") occurs using command line arguments to make 
>with tcsh, but not with csh, as listed below.  Anyone know what is wrong?
>
>Sun3/60 SunOS 4.1.1 make 
>tcsh 5.20.02 (Cornell) 12/07/90 options 8b,nls,el,dl,al,dir
>
>In tcshell:
>
>  cirrus[235]#make -n LIBDIR=$gnu/lib/emacs
>
>  LIBDIR=/usr/local/gnu/ unreadable
>
>  LIBDIR=/usr/local/gnu/lib/ unreadable

This is a problem with the automatic correction code. 
You have $correct set to "all". Tcsh tries to correct all the arguments,
Unfortunately it does not parse correctly the LIBDIR=$gnu/lib/emacs, and
tries to find if the whole directory exists.

If you unset correct, it works fine. It is impossible to determine what
the user really meant in cases like this. LIBDIR= could have been a
valid path component... [mkdir LIBDIR= LIBDIR=/usr ..]

I should add a `caveats' paragraph on that section of the manual page.

christos
-- 
Christos Zoulas         | 389 Theory Center, Electrical Engineering,
christos@ee.cornell.edu | Cornell University, Ithaca NY 14853.
christos@crnlee.bitnet  | Phone: (607) 255 0302, Fax: (607) 255 9072