git-bats-demo solution, part 3 of 5 (creating a starter shell script)

preview_player
Показать описание
This is the third of five videos that work through a solution to a simple shell scripting problem, using the bats testing tool to drive the solution.

In this part I create a simple starter script that gets us started. I show the use of `touch` to create an empty file, `chmod` to make that file executable, and add a "shebang" line that says that this should be interpreted as a sequence of `bash` command.

These videos assume that you know the basics of command line interaction (`ls`, `cd`, `rm`, etc.). if you're playing along at home you should definitely feel free to pause anytime I do something that appears mysterious and do a little searching for additional information.

Рекомендации по теме
Комментарии
Автор

thanks for clear explanation as well as good explanation for bash programming.

vincentpham
Автор

Very useful, using bats for testing bash scripts, thanks.

umanagaswamy
visit shbcf.ru