Re: [Dorset] Multiple commands in bash

2015-03-13 Thread Tim Allen
Hi Ralph On 12/03/15 15:34, Ralph Corderoy wrote: Hi Tim, I'd like to run multiple commands in Bash: patch -m patchfile hg diff cd dir make -s but for audit purposes I'd like each command in the list to be echoed as run, even better I'd like the Bash prompt to appear too in front of each

[Dorset] Multiple commands in bash

2015-03-12 Thread TimA
Hi I'd like to run multiple commands in Bash: patch -m patchfile hg diff cd dir make -s but for audit purposes I'd like each command in the list to be echoed as run, even better I'd like the Bash prompt to appear too in front of each line. I know that as an alternative I can put the

Re: [Dorset] Multiple commands in bash

2015-03-12 Thread Andrew Montgomery-Hurrell
Not sure if this is what you want, but something like the following might work. It doesn't do the bash prompt since there is not way of getting the current prompt output reliably, but if you just want a fake one for display purposes, you could hard code it into the script. Also, it doesn't check

Re: [Dorset] Multiple commands in bash

2015-03-12 Thread Ralph Corderoy
Hi Tim, I'd like to run multiple commands in Bash: patch -m patchfile hg diff cd dir make -s but for audit purposes I'd like each command in the list to be echoed as run, even better I'd like the Bash prompt to appear too in front of each line. $ cat tim id date false