From 1e83925db48bb6d5fbc458d3f925159f7dacab22 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Tue, 29 Nov 2022 14:54:57 +0100 Subject: Add bash scripting with positional arguments --- bash.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bash.md b/bash.md index 12312c6..6258795 100644 --- a/bash.md +++ b/bash.md @@ -88,3 +88,10 @@ All keys: *) error "Unexpected option ${flag}" ;; esac done + +### With positional arguments + +Positional arguments will have to be supplied after flag options (`command +[options] `): + + shift $((OPTIND-1)) -- cgit v1.2.3