Run a string as a command within a Bash script

前端 未结 8 911
清歌不尽
清歌不尽 2020-12-07 09:08

I have a Bash script that builds a string to run as a command

Script:

#! /bin/bash

matchdir=\"/home/joao/robocup/runner_workdir/mat         


        
8条回答
  •  一生所求
    2020-12-07 10:05

    I usually place commands in parentheses $(commandStr), if that doesn't help I find bash debug mode great, run the script as bash -x script

提交回复
热议问题