Skip to content

Commit d9ca1b4

Browse files
committed
feat(7z): treat rn command as mode=w
Renaming archive members is a modify operation and can only be done for formats where writing is supported. Suggested-by: Ville Skyttä <[email protected]> Signed-off-by: Kevin Locke <[email protected]>
1 parent 7a72e43 commit d9ca1b4

File tree

1 file changed

+1
-1
lines changed
  • completions

1 file changed

+1
-1
lines changed

completions/7z

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ _7z()
1111
fi
1212

1313
local mode
14-
[[ ${words[1]} == [adu] ]] && mode=w || mode=r
14+
[[ ${words[1]} == @(a|d|rn|u) ]] && mode=w || mode=r
1515

1616
case $cur in
1717
-ao*)

0 commit comments

Comments
 (0)