www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/14/23:21:38

Date: Fri, 14 May 1999 23:21:37 -0400
Message-Id: <199905150321.XAA24074@delorie.com>
Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Steve Morris <sjm AT judgement DOT com>
To: cygwin AT sourceware DOT cygnus DOT com
cc: sjm AT judgement DOT com
Subject: error string substituted for %E in filename


Why does this program create a file named ".new.error 2D.1".  That
surely wasn't my intention and is croaking cvs client when checking
out a file called "%ED.1". Obviously something thinks "%E" should be
expanded to the current error string but in the open command? Not what
I would have expected.

Do I have to quote % to work around this?

config: cygwin 20.1, NT 4.

-------------------------------------------------------------------------
#include "sys/types.h"
#include "sys/stat.h"
#include "fcntl.h"

main ()
{
  int fd;
  
  fd = open (".new.%ED.1",
		 (O_WRONLY | O_CREAT | O_TRUNC),
		 0777);
  close(fd);
}


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019