title: How do I run a program with commandline arguments using GDB within a Bash script?
body: <p>When running a program on GDB, usually, the arguments for the program are given at the <code>run</code> command. Is there a way to run the program using GDB and as well as give arguments within a shell script?</p>
  
  <p>I saw an answer in a related question, mentioning that we can attach GDB to the program after the script starts executing. But then I will have to 'wait' the program.</p>
  
  <p>Is there another way to do this?</p>