Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Issue with resolving paths with zsh using \0 in variables
- X-seq: zsh-workers 41300
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Issue with resolving paths with zsh using \0 in variables
- Date: Wed, 14 Jun 2017 21:13:36 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=YS8Ep1y8VMrlOkmZ9j2x+SC83yYzOPaZdU33tZrJ2PI=; b=hQphDFM0TgyfMUIvdwwlKCHcuJVOTlpzmqqw0w/AiTiCOVqNsQqglMciq3mqrel6X4 ih3jXZpbENTQwrFtHsMNxNeDiHPj2et6ji2FfWytbckwIbaHRGHOAwpVlTHlW1+7mP6k L95mHzTOjnufHdXVCjz/bFDuulO6FrBGDDpHXdAVG79ENsryRZrKbgVI9j0xno7PkPH/ 9KC3gZY7T5BuxRke9NImBykiiGsG00PWRYl5qTOFpahp0+hWdZm7pqdK8DTh/EVDRiLe tWz6oa732IS6m30NEBlbb+fPG1Kf1SfHyfEzPJ6DszRoBJPqkyq2XlNFg+SCtt+8gQJg AH/g==
- In-reply-to: <60d15cae-f53a-794e-7f86-5cfaa622dfc3@gmx.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAADoZg3dsdn6yBrkUYQj3=w6ZKyqQDu5sG+kEas9c5yLNU1XPA@mail.gmail.com> <170614160224.ZM20305@torch.brasslantern.com> <60d15cae-f53a-794e-7f86-5cfaa622dfc3@gmx.com>
On Jun 14, 11:40pm, Eric Cook wrote:
}
} On 06/14/2017 07:02 PM, Bart Schaefer wrote:
}
} > -- probably is a bug, just not the bug you think it is; the error should
} > be that "subdir\0" is an illegal file name, rather than terminating the
} > path at the nul and botching the redirection.
}
} When the expansion is quoted, you do get the error that you think it
} should have.
No, I don't:
torch% echo "hi" > "sub$(cat location)/myfile"
zsh: is a directory: subdir^@/myfile
Messages sorted by:
Reverse Date,
Date,
Thread,
Author