This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cat HelloDate.java >hellodate.java fails with cat HelloDate.java: input file is output file


 A question...
 
 /home/rthompso/JAVA>cat HelloDate.java >hellodate.java
 cat: HelloDate.java: input file is output file
 
 
 Is this proper behavior?( I do not believe it is).  If not, is this a
 result of some error in my setup (mount type for /home????) or an
 underlying OS problem(WIN caseInsensitive)? or...? The archives have minor
 mention of this in 1998, nothing since.
 
 cat.c makes the following validation:
 
       if (check_redirection
 	  && stat_buf.st_dev == out_dev && stat_buf.st_ino == out_ino
 	  && (input_desc != STDIN_FILENO || output_desc != STDOUT_FILENO))
 	{
 	  error (0, 0, _("%s: input file is output file"), infile);
 	  exit_status = 1;
 	  goto contin;
 	}
 
 
 
 
 thanks
 reid


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]