Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: print built-in doesn't print this.
- X-seq: zsh-users 27342
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: jdh <dhenman@xxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: print built-in doesn't print this.
- Date: Sun, 14 Nov 2021 20:29:51 +0100
- Archived-at: <https://zsh.org/users/27342>
- In-reply-to: <20211114111957.4514@sachi>
- List-id: <zsh-users.zsh.org>
- References: <20211114111957.4514@sachi>
On Sun, Nov 14, 2021 at 8:21 PM jdh <dhenman@xxxxxxxxx> wrote:
>
> I wanted to insert a string of '-'s to visually show a change in a list.
> But I found out that
>
> print "--------"
This should do it:
print -- "--------"
It's unfortunate that print doesn't report an error with the original
arguments. UNIX utilities usually do:
BSD:
% ls --------
ls: unrecognized option `--------'
usage: ls [snip]
GNU:
% ls --------
ls: unrecognized option `--------'
Try 'ls --help' for more information.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author