Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: question mark in filename.
- X-seq: zsh-users 26367
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: question mark in filename.
- Date: Sun, 10 Jan 2021 08:02:25 +0100
- Archived-at: <https://zsh.org/users/26367>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2021-01/CAN%3D4vMpjAzui04sEP5SsXDfqnJjF8Jt0Oir0qUsWzXAojy3snQ%40mail.gmail.com>
- In-reply-to: <d720a4ef-d2b6-51b4-d6a6-98b583338621@eastlink.ca>
- List-id: <zsh-users.zsh.org>
- References: <d720a4ef-d2b6-51b4-d6a6-98b583338621@eastlink.ca>
On Sun, Jan 10, 2021 at 5:50 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> Not that there should ever be such a thing, but I was curious: I throw
> strings around mostly successfully but not with the stupid question mark:
>
>
> function test1 ()
> {
> input=( "$@" ) # 'input' is fine: "ls s,7*"
> eval $input # this works fine.
> output=( $(eval ${()input}) )
> print "$output" # ... but 'output' looses the question
> marks.
> }
>
> function test2 ()
> {
> string="ls s,7*" # 'ls' finds: 's,7,big?improvements?in?code'
> test1 $string
> }
>
> $ . test; test2
> s,7,big?improvements?in?code
> s,7,big improvements in code
My guess is that the name of this file contains something interesting
in place of question marks (ascii 63). Try this:
ls s,7* | cat -v
print -r -- s,7* | od -t x1 -An -v
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author