This is the mail archive of the
cygwin
mailing list for the Cygwin project.
gnuplot dollar sign and command line arguments
- From: "George Prekas via cygwin" <cygwin at cygwin dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Fri, 19 Jan 2018 19:32:57 +0000 (UTC)
- Subject: gnuplot dollar sign and command line arguments
- Authentication-results: sourceware.org; auth=none
- References: <1759739558.1598055.1516390377125.ref@mail.yahoo.com>
- Reply-to: George Prekas <prekgeo at yahoo dot com>
I noticed that gnuplot is configured with the flag --enable-backwards-compatibility in file gnuplot-5.2.2-1.cygport downloaded from http://mirror.switch.ch/ftp/mirror/cygwin/x86/release/gnuplot/gnuplot-5.2.2-1-src.tar.xz. This flag causes the following test case to behave differently under Cygwin and Ubuntu:
ubuntu$ echo 'print "$0"' > x
ubuntu$ gnuplot -c x 1
$0
cygwin$ echo 'print "$0"' > x
cygwin$ gnuplot -c x 1
1
More specifically the flag --enable-backwards-compatibility enables the backward compatible expansion of dollar sign expressions to command line arguments in gnuplot source files. Is there any specific reason that Cygwin chooses to enable this flag?
Regards,
George Prekas
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple