Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[goswin.brederlow@xxxxxxxxxxxxxxxxxxxxxxxx: Bug#131063: zsh: read -r removes \ in \\]
- X-seq: zsh-workers 16499
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: [goswin.brederlow@xxxxxxxxxxxxxxxxxxxxxxxx: Bug#131063: zsh: read -r removes \ in \\]
- Date: Sun, 27 Jan 2002 15:24:05 -0500
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
----- Forwarded message from Goswin Brederlow <goswin.brederlow@xxxxxxxxxxxxxxxxxxxxxxxx> -----
~% echo "\\"
\
~% echo "\\" | read -r i; echo "$i"
\
~% echo "\\\\\\\\"
\\
~% echo "\\\\\\\\" | read -r i; echo "$i"
\
The manpage says read -r does not remove \.
Also echo removes \:
~% echo "\\\\"
\
bash will print \\ as intendet. Any reason? (ksh/pdksh print \ I was
told).
MfG
Goswin
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux dual 2.4.16 #9 SMP Sat Jan 26 16:39:53 CET 2002 i686
Locale: LANG=C, LC_CTYPE=de_DE
Versions of packages zsh depends on:
ii libc6 2.2.5-1 GNU C Library: Shared libraries an
ii libcap1 1:1.10-12 support for getting/setting POSIX.
ii libncurses5 5.2.20020112a-3 Shared libraries for terminal hand
----- End forwarded message -----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author