From 408b92b168078a338f5fc2c2f95f39f8aa8e5f67 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 26 Apr 2017 09:44:38 +0100 Subject: 41008: Handle expansions for precommand modifiers --- Test/E01options.ztst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Test/E01options.ztst') diff --git a/Test/E01options.ztst b/Test/E01options.ztst index 2bd4fdb1a..dac9430cc 100644 --- a/Test/E01options.ztst +++ b/Test/E01options.ztst @@ -804,6 +804,20 @@ >print is a shell builtin ?(eval):8: command not found: print + ( + setopt posixbuiltins + opts=() + command $opts print foo + opts=(-v) + command $opts print + opts=(-V) + command $opts print + ) +0:command with options from expansion +>foo +>print +>print is a shell builtin + # With non-special command: original value restored # With special builtin: new value kept # With special builtin preceeded by "command": original value restored. -- cgit 1.4.1