mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-28 17:10:59 +01:00
41662: exec -a arguments weren't sanitised
This commit is contained in:
parent
e44600d9aa
commit
c9df6bc8d4
3 changed files with 17 additions and 0 deletions
|
|
@ -103,6 +103,12 @@
|
|||
0:`exec' with -a option, no space
|
||||
>/bin/SPLOOSH
|
||||
|
||||
(exec -a foo* $ZTST_testdir/../Src/zsh -fc 'print -r -- ${(V)0}')
|
||||
(exec -a "" $ZTST_testdir/../Src/zsh -fc 'print -r -- ${(V)0}')
|
||||
0:rationalisation of arguments to exec -a
|
||||
>foo*
|
||||
>
|
||||
|
||||
(
|
||||
opts=(-a /bin/WHOOOSH)
|
||||
exec $opts /bin/sh -c 'echo $0'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue