如何在父shell中执行某些命令后在子shell中执行命令

时间:2018-04-06 09:24:57

标签: linux shell

我希望在下面的场景中执行我的命令(shell脚本)

我有要执行的命令

bef createTable xyz   [in Parent Shell]
bef useTable xyz      [spawns a subshell] 
bef refreshTable -latest [in the subshell]
exit   [in the subshell] 

作为一个例子,我试过

/bin/bash -c 'bef useTable mrinal_bugs && exit'

但退出没有执行

0 个答案:

没有答案