csh行首的&符 [英] ampersand at beginning of a line in csh

查看:88
本文介绍了csh行首的&符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在csh中,行的开始中的&符是做什么的?它似乎被忽略了(没有错误信息),但是为什么呢?

What does an ampersand at the beginning of a line do in csh? It seems to be ignored (with no error message), but why?

推荐答案

发现了一些有趣的东西:

Found something interesting:

分号(;)字符分隔 单个命令上的连续命令 命令行.例如,

The semicolon (;) character separates successive commands on a single command line. For example,

% <command1> ; <command2>

执行< command1>,并在完成后执行< command2>.

executes <command1>, and when it finishes, <command2> gets executed.

&字符(&)相似 到分号(;),但不等待 < command1>完成.

The ampersand character (&) is similar to the semicolon (;) but does not wait for <command1> to finish.

也许它像对待空命令一样对待它?

Maybe it's treating it like an empty command?

这篇关于csh行首的&符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆