diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-11-13 21:18:14 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-11-13 21:18:14 +0000 |
commit | 35a8612f217f25a37caaed08b31be754cfe584b1 (patch) | |
tree | 14c1dcc8b6ae7f732a3c969fef80e498153858ca /Test | |
parent | dcd26714bb85b7559ae5342ae95cc30f9a98ce8c (diff) | |
download | zsh-35a8612f217f25a37caaed08b31be754cfe584b1.tar.gz zsh-35a8612f217f25a37caaed08b31be754cfe584b1.tar.xz zsh-35a8612f217f25a37caaed08b31be754cfe584b1.zip |
26042 with some fixes from 26043 (Mikael):
allow <(...) and >(...) to occur in the middle of strings and =(...) to have extra text following
Diffstat (limited to 'Test')
-rw-r--r-- | Test/D03procsubst.ztst | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Test/D03procsubst.ztst b/Test/D03procsubst.ztst index e176d8934..37a67630f 100644 --- a/Test/D03procsubst.ztst +++ b/Test/D03procsubst.ztst @@ -36,3 +36,51 @@ 0:FDs remain open for external commands called from functions >First >Zweite + + catfield2() { + local -a args + args=(${(s.,.)1}) + print $args[1] + cat $args[2] + print $args[3] + } + catfield2 up,<(print $'\x64'own),sideways +0:<(...) when embedded within an argument +>up +>down +>sideways + + outputfield2() { + local -a args + args=(${(s.,.)1}) + print $args[1] + echo 'How sweet the moonlight sits upon the bank' >$args[2] + print $args[3] + } + outputfield2 muddy,>(sed -e s/s/th/g >outputfield2.txt),vesture + # yuk + while [[ ! -e outputfield2.txt || ! -s outputfield2.txt ]]; do :; done + cat outputfield2.txt +0:>(...) when embedded within an argument +>muddy +>vesture +>How thweet the moonlight thitth upon the bank + + catfield1() { + local -a args + args=(${(s.,.)1}) + cat $args[1] + print $args[2] + } + catfield1 =(echo s$'\x69't),jessica +0:=(...) followed by something else without a break +>sit +>jessica + + ( + setopt nonomatch + # er... why is this treated as a glob? + print everything,=(here is left),alone + ) +0:=(...) preceded by other stuff has no special effect +>everything,=(here is left),alone |