Re: shell prefix/suffix removal with quoted word

2018-07-27 Thread roarde
On Fri, 27 Jul 2018 21:49:03 +0700 Robert Elz wrote: > Date:Fri, 27 Jul 2018 13:39:18 +0200 > From:Edgar =?iso-8859-1?B?RnXf?= > Message-ID: <20180727113917.gd48...@trav.math.uni-bonn.de> > > | It has been brought to my attention that quoting the "word" in sh's

Re: shell prefix/suffix removal with quoted word

2018-07-27 Thread Robert Elz
Date:Fri, 27 Jul 2018 13:39:18 +0200 From:Edgar =?iso-8859-1?B?RnXf?= Message-ID: <20180727113917.gd48...@trav.math.uni-bonn.de> | It has been brought to my attention that quoting the "word" in sh's | substring processing causes word to be matched literally

shell prefix/suffix removal with quoted word

2018-07-27 Thread Edgar Fuß
It has been brought to my attention that quoting the "word" in sh's substring processing causes word to be matched literally rather than being treated as a pattern. I.e., x="abc" y="?" echo "${x#"$y"}" outputs "abc", while x="abc" y="?" echo