Ticket #38728

tilde expansion active in quoted parameter substitution

Open Date: 2018-11-06 05:48 Last Update: 2018-11-07 23:30

Reporter:
Owner:
(None)
Type:
Status:
Open
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

Quoting should deactivate tilde expansion, but yash still expands tildes in quoted parameter expansions.

$ yash -c 'unset foo; echo "${foo:-~/test}"'
/Users/martijn/test

Expected output: ~/test (as per dash, bash, *ksh, zsh)

Attachment File List

No attachments

Ticket History (2/2 Histories)

2018-11-06 05:48 Updated by: mcdutchie
  • New Ticket "tilde expansion active in quoted parameter substitution" created
2018-11-07 23:30 Updated by: magicant
Comment

Thanks for reporting.

Looks like this is the same kind of issue as #36278. POSIX does not precisely define how double-quotes modify interpretation of other special characters.

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login