Skip to content

Instantly share code, notes, and snippets.

@ceremcem
Last active October 23, 2017 21:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ceremcem/9b6e8e90928ff4afc569 to your computer and use it in GitHub Desktop.
Save ceremcem/9b6e8e90928ff4afc569 to your computer and use it in GitHub Desktop.
oneshell testing
.ONESHELL:
SHELL = /bin/bash
.SHELLFLAGS = -e
test:
cd /tmp
X=$(pwd)
echo "here is $$X"
@ceremcem
Copy link
Author

This script produces an error:

$ make test 
cd /tmp
X=$(pwd)
echo "here is $X"
make: /bin/bash : Command not found
Makefile:5: recipe for target 'test' failed
make: *** [test] Error 127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment