Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: print built-in doesn't print this.
- X-seq: zsh-users 27343
- From: Lawrence Velázquez <larryv@xxxxxxx>
- To: jdh <dhenman@xxxxxxxxx>
- Cc: zsh-users@xxxxxxx
- Subject: Re: print built-in doesn't print this.
- Date: Sun, 14 Nov 2021 14:33:25 -0500
- Archived-at: <https://zsh.org/users/27343>
- In-reply-to: <20211114111957.4514@sachi>
- List-id: <zsh-users.zsh.org>
- References: <20211114111957.4514@sachi>
On Sun, Nov 14, 2021, at 2:19 PM, jdh wrote:
> I wanted to insert a string of '-'s to visually show a change in a list.
> But I found out that
>
> print "--------"
>
> Does not print anything out. Well maybe a \n.
> Is this intentional? Or a well known feature?
It's interpreting "--------" as an option. To print strings that
begin with "-" you can use the common "--" idiom to indicate that
subsequent arguments should not be interpreted as options.
% print ------
% print -- ------
------
--
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author