Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: triviality regarding $# counts



On Sun, Apr 14, 2024 at 10:42 AM Mark J. Reed <markjreed@xxxxxxxxx> wrote:
>
> On Sun, Apr 14, 2024 at 1:22 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>>
>> Hard spaces will be inside ticks or $'' .
>
> .. or double-quotes; don't forget about them.

However, "typeset -p" never outputs double-quotes for this purpose.

> But it's easier to just use ANSI quotes:
>
> x=$'That\'s all, folks!'

Which typeset will output "the old way"

'That'\''s all, folks!'




Messages sorted by: Reverse Date, Date, Thread, Author