probably this php snippets implies same as in bash 🤔: here in shell script:
php
function greet(?string $nom): string { return "hello! " . ($nom ?? "dev-null"); } $greet = greet("Adamas"); echo $greet;
bash
#!/bin/bash greet() { local nom=$1 echo "hello! ${nom:-dev-null}" } sayhello=$(greet "Adamas") echo "$sayhello" | cat
commit 6c6f0d3