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 commands in a script with #!/bin/bash -v to get the first requirement.

Cheers

Tim

--
Next meeting:  Bournemouth, Tuesday, 2015-04-07 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue     / TO THE LIST OR THE AUTHOR

Reply via email to