gpt4 book ai didi

linux - 符号链接(symbolic link)会发生什么?原始二进制文件和符号二进制文件的行为不同

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:50:11 26 4
gpt4 key购买 nike

当我安装 Basic TeX ,我发现 pdflatex 只是指向同一目录下的 pdftex 的符号链接(symbolic link)。但是,当我尝试通过 pdftex 而不是 pdflatex 直接编译我的 tex 文件时,编译过程变得交互式,我需要点击 return 按钮不断直到编译完成。但是如果我使用 pdflatex,输出似乎不同。 pdftex 符号链接(symbolic link)时发生了什么?符号链接(symbolic link)可以改变二进制文件的执行行为吗?

更新:

pdftex 的输出如下所示:

This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdftex)
restricted \write18 enabled.
entering extended mode
(./test.tex
! Undefined control sequence.
l.1 \documentclass
[letter]{article}
?
! Undefined control sequence.
l.2 \usepackage
[margin=0.5in]{geometry}
?
! Undefined control sequence.
l.4 \begin
{document}
?
! Undefined control sequence.
l.6 \section
*{Problem 1}
?
! Undefined control sequence.
l.8 \subsection
*{Algorithm}
?
[1{/usr/local/texlive/2015basic/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
)</usr/local/texlive/2015basic/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.
pfb>
Output written on test.pdf (1 page, 15945 bytes).
Transcript written on test.log.

并且,pdflatex 打印如下:

his is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2015/01/01>
Babel <3.9l> and hyphenation patterns for 21 languages loaded.
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2015basic/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2015basic/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2015basic/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2015basic/texmf-dist/tex/generic/ifxetex/ifxetex.sty))

LaTeX Warning: Unused global option(s):
[letter].

(./test.aux)
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
[1{/usr/local/texlive/2015basic/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./test.aux) )</usr/local/texlive/2015basic/texmf-dist/fonts/type1/public/amsfo
nts/cm/cmbx12.pfb></usr/local/texlive/2015basic/texmf-dist/fonts/type1/public/a
msfonts/cm/cmr10.pfb>
Output written on test.pdf (1 page, 21292 bytes).
Transcript written on test.log.

最佳答案

他们知道自己的名字。您可以通过检查 argv[0] 来重现这一点。

关于linux - 符号链接(symbolic link)会发生什么?原始二进制文件和符号二进制文件的行为不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32377865/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com