GNU屏幕:环境变量 [英] GNU Screen: Environment variables
本文介绍了GNU屏幕:环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
[已更新]
问题与 GNU屏幕:程序员在Readbuf中引用和 GNU屏幕:文件到编号缓冲区?由于它们没有得到解决,所以这个问题针对环境变量的一般概念。我的信念是,他们是使Screen更有效率的关键。
1。如何在屏幕中使用Bash的变量,如:
$ export path=`pwd`
$ ^a :readbuf `echo $path`/debugging_code.php
2。如何重用Screen的缓冲区,如:
$ ^a :readreg a `echo $path`
$ ^a :readbuf $a/debugging_code.php
$ ^a ]
强> 3。如何使用屏幕缓冲区,如环境变量?
3. How can I use Screen's buffers like environment variables?
推荐答案
以下命令不会创建新的屏幕会话,但它会创建一个屏幕内部变量。在命令行上运行它可以使用shell扩展:
The following command does not create a new screen session, but it will create a screen internal variable. Running it on the command line allow you to use the shell expansion:
$ screen -X setenv a "$PWD/debugging_code.php"
然后使用新变量:
C-a :readbuf $a
这篇关于GNU屏幕:环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文