【问题标题】:Problems piping a file list to emacs将文件列表传送到 emacs 时出现问题
【发布时间】:2018-10-24 11:40:57
【问题描述】:

我正在尝试将 ack(如 grep)的输出通过管道传输到 emacs 以编辑一堆文件。在没有图形的 ssh 窗口中运行我得到这个:

 #>  ack findit -l
 file1
 file2
 file3
 #>  ack findit -l | xargs emacs
 emacs: standard input is not a tty#>

我自己启动 emacs 没有问题。

知道我做错了什么吗?

附加信息:如果我运行 xargs --verbose 我可以复制并粘贴打印的命令,它工作正常。

strong text

【问题讨论】:

  • SO 是针对编程问题,而不是关于使用或配置 Linux 及其应用程序的问题。 SuperUserUnix & Linux 将是解决此类问题的更好地方。

标签: bash emacs xargs


【解决方案1】:

您是否尝试过使用emacsclient?这对我有用

ack . *.c -l | xargs emacsclient -nw -a ''

例如打开所有.c 文件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-05-31
    • 1970-01-01
    • 1970-01-01
    • 2019-11-28
    • 2011-06-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多