浏览代码

Show 1 while spawning a subshell

master
Arun Prakash Jana 8 年前
父节点
当前提交
ae9ee35e0c
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      nnn.c

+ 3
- 1
nnn.c 查看文件

@@ -409,8 +409,10 @@ spawn(char *file, char *arg1, char *arg2, char *dir, uchar flag)
status = chdir(dir); status = chdir(dir);


/* Show a marker (to indicate nnn spawned shell) */ /* Show a marker (to indicate nnn spawned shell) */
if (flag & SP_MARKER)
if (flag & SP_MARKER) {
printf("\n +-++-++-+\n | n n n |\n +-++-++-+\n\n"); printf("\n +-++-++-+\n | n n n |\n +-++-++-+\n\n");
printf("Shell Level %s\n", getenv("SHLVL"));
}


/* Suppress stdout and stderr */ /* Suppress stdout and stderr */
if (flag & SP_NOTRACE) { if (flag & SP_NOTRACE) {


正在加载...
取消
保存