From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20967 invoked by alias); 4 Nov 2016 09:00:28 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22082 Received: (qmail 7625 invoked from network); 4 Nov 2016 09:00:28 -0000 X-Qmail-Scanner-Diagnostics: from mx0b-001b2d01.pphosted.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(148.163.158.5):SA:0(0.0/5.0):. Processed in 0.167424 secs); 04 Nov 2016 09:00:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: hanpt@linux.vnet.ibm.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at linux.vnet.ibm.com does not designate permitted sender hosts) Date: Fri, 4 Nov 2016 17:00:09 +0800 From: Han Pingtian To: zsh-user Subject: What's the 'word' in parameter relpacement expansion? Mail-Followup-To: zsh-user MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.7.1 (2016-10-04) X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16110409-0028-0000-0000-000005F2FA47 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006030; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000189; SDB=6.00776597; UDB=6.00373597; IPR=6.00553737; BA=6.00004855; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013213; XFM=3.00000011; UTC=2016-11-04 09:00:17 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16110409-0029-0000-0000-0000308FA77A Message-Id: <20161104090009.GA22682@localhost.localdomain> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-04_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611040170 Hi, I think $ a='abc def' $ print ${a:/def} will get 'abc ', but it is 'abc def'. So it works just like ${a//#%def}? The 'entire word' in the document is the same thing of 'entire string'? In zshexpn: ... or `#%' in which case the pat‐ tern must match the entire string. The first `/' may be preceded by a `:', in which case the match will only succeed if it matches the entire word Thanks in advance!