eolas/neuron/4e66db01-35b6-4b9c-aab8-2a0429e30df2/Proper_shebang_syntax.md

20 lines
233 B
Markdown
Raw Normal View History

2024-10-19 11:00:03 +01:00
---
tags:
- shell
---
# Proper shebang syntax
This is a more portable way of writing the shebang because the location of Bash
on different systems can vary.
```bash
#!/usr/bin/env Bash
```
Rather than:
```bash
#!/bin/bash
```