Bash Scripting - User Input
What is the problem with this bash script snippet?
#!/bin/bash shift -2 echo "$1"
#!/bin/bash shift -2 echo "$1"
shift command does not accept negative numbers.shift -2 results in an error: "shift: negative shift count".15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions