Newsgroups: comp.unix.ultrix Path: utzoo!utgpu!watserv1!watcgl!idallen From: "Ian! D. Allen [CGL]" Subject: Ultrix 4.1 undocumented /usr/bin/pgmrvers smashes /usr/bin/make symlink Message-ID: <1991Feb27.223217.3574@watcgl.waterloo.edu> Sender: idallen@watcgl.waterloo.edu (Ian! D. Allen [CGL]) Organization: Computer Graphics Laboratory, University of Waterloo, Ontario, Canada Date: Wed, 27 Feb 1991 22:32:17 GMT Lines: 23 #include DS5400 ULTRIX V4.1 (Rev. 52) Beware of the undocumented shell script pgmrvers: # pgmrvers Select one of the following versions [2.0 2.1] : If you simply press return in response to the above, your /usr/bin/world will be quite changed when the script finally finishes. In particular, /usr/bin/make and any other symlinks in /usr/bin will be useless symlinks to themselves. I suppose I can't post the offending shell script code or the fix, but I can say that I'd like the people at DEC who write such programs to check for null input before using it. The script also starts without using the -f flag to csh, so it reads all my aliases, and it doesn't set its own search path, so if I have a different version of "ls" in my path when I start the script or as an alias the script uses my version instead of the expected one. -- -IAN! (Ian! D. Allen) idallen@watcgl.uwaterloo.ca idallen@watcgl.waterloo.edu [129.97.128.64] Computer Graphics Lab/University of Waterloo/Ontario/Canada