Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
BASH Fallback to default variable
metalx1000
Mar 15th, 2019
867
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Bash
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
#!/bin/bash
#set candy to first argument
#default to Twix is none are given
#candy="${@:-Twix}" #for all arguments
candy
=
"
${1:-Twix}
"
echo
"Candy Selected,
$candy
!"
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ MAKE $12OO IN 10 MIN S
JavaScript | 3 sec ago | 0.06 KB
MAKE $900 INSTANTLY O
JavaScript | 19 sec ago | 0.06 KB
✅ MAKE $12OO IN 10 MIN S
JavaScript | 27 sec ago | 0.06 KB
✅ MAKE $12OO IN 10 MIN 7
JavaScript | 34 sec ago | 0.06 KB
?Make 1500$ in 1 day [Method]? AZ
Java | 34 sec ago | 0.07 KB
300$ GIFTCARDS? QI
Java | 36 sec ago | 0.06 KB
Make 1500$ in 20 MIN [Method] G
JavaScript | 44 sec ago | 0.06 KB
Make 1500$ in 20 MIN [Method] D
JavaScript | 51 sec ago | 0.06 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!