浏览代码

aliases deprecated in favor of bash functions

Nate Brady 8 年之前
父节点
当前提交
e6ae443858
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      toolset/setup/linux/prerequisites.sh

+ 3 - 1
toolset/setup/linux/prerequisites.sh

@@ -45,6 +45,8 @@ sudo sh -c "echo '*            soft    rtprio             99' >> /etc/security/l
 # For now, this still ensures you have to be in the framework root to run it
 # For now, this still ensures you have to be in the framework root to run it
 sudo tee /etc/profile.d/tfb.sh <<EOF
 sudo tee /etc/profile.d/tfb.sh <<EOF
 #!/bin/bash
 #!/bin/bash
-alias tfb="$(pwd)/toolset/run-tests.py"
+tfb() {
+  $(pwd)/toolset/run-tests.py "\$@"
+}
 EOF
 EOF
 source /etc/profile.d/tfb.sh
 source /etc/profile.d/tfb.sh