Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: beep and garbage with long commands
- X-seq: zsh-workers 20078
- From: Steven Lumos <slumos@xxxxxxxxxxxxxxx>
- To: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- Subject: Re: beep and garbage with long commands
- Date: Fri, 18 Jun 2004 18:50:50 -0700
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: Message from Dan Nelson <dnelson@xxxxxxxxxxxxxxx> of "Fri, 18 Jun 2004 01:52:59 CDT." <20040618065259.GF67368@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Dan Nelson <dnelson@xxxxxxxxxxxxxxx>:
>In the last episode (Jun 16), slumos@xxxxxxxxxxxxxxx said:
>> When entering certain long commands, zsh (at least 4.0.7 and 4.2.0 on
>> at least FreeBSD and Solaris) beeps and echos parts of the command.
>> Here's a stupid made-up example:
>>
>> [~]0% ls -la | while read line; do echo $line | awk '{print $1 " " $2 " " $3
> " " $4 " " $5 "\n"}'; done >|/dev/null; echo
>>
>> "}'; done >|/dev/null; echo
>> [~]0%
>
>I bet you have a preexec function that sets your xterm's title bar,
>right? Either the backslashes or the embedded newline is aborting the
>escape sequence, you end up with the rest of your command printed
>onscreen, plus the ^G that was supposed to end the titlebar escape
>string.
Of course! I *never* would have guessed that. Thanks!
Steve
Messages sorted by:
Reverse Date,
Date,
Thread,
Author