gnuplot中的文件名完成不完成边界 [英] filename completion in gnuplot does not complete the boundary
问题描述
我长时间使用gnuplot,我一直感觉到的一个问题是它没有关闭文件名制表符的"
.
例如
I am using gnuplot for long time, and one problem that I always feel is it is not closing the "
on tab completion of filename.
e.g.
gnuplot> p 'fo<Tab>
会给我:
gnuplot> p 'fort.10 <cursor here, see the missing '>
我希望有:
gnuplot> p 'fort.10' <cursor here>
我使用的是fedora的rpm,它给出:
I am using the rpm from fedora, which gives:
show version long
G N U P L O T
Version 4.6 patchlevel 3 last modified 2013-04-12
Build System: Linux x86_64
Copyright (C) 1986-1993, 1998, 2004, 2007-2013
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Compile options:
-READLINE +LIBEDITLINE +HISTORY
-BACKWARDS_COMPATIBILITY +BINARY_DATA
+GD_PNG +GD_JPEG +GD_TTF +GD_GIF +ANIMATION
-USE_CWDRC +X11 +X11_POLYGON +MULTIBYTE +X11_EXTERNAL +USE_MOUSE +HIDDEN3D_QUADTREE
+DATASTRINGS +HISTOGRAMS +OBJECTS +STRINGVARS +MACROS +IMAGE +USER_LINETYPES +STATS
GNUPLOT_DRIVER_DIR = "/usr/libexec/gnuplot/4.6"
GNUPLOT_PS_DIR = "/usr/share/gnuplot/4.6/PostScript"
HELPFILE = "/usr/share/gnuplot/4.6/gnuplot.gih"
编译后
-READLINE +LIBEDITLINE +HISTORY
-BACKWARDS_COMPATIBILITY +BINARY_DATA
+GD_PNG +GD_JPEG +GD_TTF +GD_GIF +ANIMATION
-USE_CWDRC +X11 +X11_POLYGON +MULTIBYTE +X11_EXTERNAL +USE_MOUSE +HIDDEN3D_QUADTREE
+DATASTRINGS +HISTOGRAMS +OBJECTS +STRINGVARS +MACROS +IMAGE +USER_LINETYPES +STATS
GNUPLOT_DRIVER_DIR = "/usr/libexec/gnuplot/4.6"
GNUPLOT_PS_DIR = "/usr/share/gnuplot/4.6/PostScript"
HELPFILE = "/usr/share/gnuplot/4.6/gnuplot.gih"
推荐答案
这是gnuplot的命令行编辑问题. Debian的gnuplot二进制文件也是如此.
That is a problem with gnuplot's command-line editing. The same happens with Debian's gnuplot binary.
如果您针对libreadline自己编译gnuplot,则完成工作正常.这是一个许可证问题:gnuplot未获得GPL许可,因此禁止分发与其链接的gnuplot二进制文件,请参见
If you compile gnuplot yourself against libreadline, the completion works fine. This is a license issue: gnuplot isn't licensed under the GPL so that it is forbidden to distribute gnuplot binaries which are linked against it, see https://lists.debian.org/debian-devel/1998/06/msg01162.html
如果您自己编译gnuplot并将其链接到GNU libreadline,则很好,但不允许您分发结果二进制文件.
Its fine if you compile gnuplot yourself and link it against GNU libreadline, but you're not allowed to distribute the resulting binary.
这篇关于gnuplot中的文件名完成不完成边界的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!