Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!ucla-cs!zen!ucbvax!CLARKU.BITNET!RMANGALD From: RMANGALD@CLARKU.BITNET Newsgroups: comp.os.vms Subject: Re: (Alleged) VAX C bug Message-ID: <8707291449.AA21588@ucbvax.Berkeley.EDU> Date: Mon, 27-Jul-87 18:27:00 EDT Article-I.D.: ucbvax.8707291449.AA21588 Posted: Mon Jul 27 18:27:00 1987 Date-Received: Fri, 31-Jul-87 04:20:32 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 31 Listmember Rahul Dhesi (dhesi@ucbvax.berkeley.edu) writes: > I have discovered truly bizarre behavior in C for VAX/VMS. The >command-line arguments are folded to all lowercase. The only way of >preserving case seems to be to enclose arguments in double quotes. Thus >a command like > > tr a-z A-Z > >won't work. > > How does one tell it not to do it? I could find no references >to this in the index of the VMS C manual. -------------------------------- Rahul: Well, this is not really a bug -- it's documented in the section about and . It's unusual only in that while DCL and other "standard" VMS programs force the command line to upper case, VAX C forces it to lowercase; the only way I know to prevent this conversion is by enclosing the arguments in double quotes, as you found out. -------------------------------- Rahul Mangaldas (rmangald@clarku.bitnet) Box 1311 Clark University 950 Main Street Worcester, MA 01610-1477