Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (P:string:) glob qualifier-like effect for parameter expansion
On Sep 14, 10:42pm, Roman Neuhauser wrote:
}
} set -A headers "${(@f):-"$(git show -s --format=$fmt $rev)"}"
}
} and i'd like to add::
}
} mime-construct "${(@???)headers}" ...
}
} to get::
}
} --header "From: ..." --header "Date: ..." --header "Subject: ..."
You can do this in zsh 5.0.6:
torch% x=(--header)
torch% y=(From Date Subject)
torch% print -R ${x:^^y}
--header From --header Date --header Subject
Messages sorted by:
Reverse Date,
Date,
Thread,
Author