GNU bug report logs -
#13919
using echo to branch line
Previous Next
Reported by: 王宾 <bwang2009 <at> yeah.net>
Date: Sun, 10 Mar 2013 18:27:01 UTC
Severity: normal
Tags: notabug
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
--
hi,
As we know:
[polar <at> localhost my_shell]$ echo $PATH
/usr/local/Trolltech/Qt-4.7.4/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/polar/bin:/sbin
[polar <at> localhost my_shell]$
when i use
[polar <at> localhost my_shell]$ echo ${PATH//:/'\n'} -e
to branch line and hope the result may be like this
[polar <at> localhost my_shell]$ echo $PATH | sed 's/:/\n/g'
/usr/local/Trolltech/Qt-4.7.4/bin
/usr/lib/qt-3.3/bin
/usr/kerberos/bin
/usr/local/bin
/usr/bin
/bin
/usr/X11R6/bin
/home/polar/bin
/sbin
[polar <at> localhost my_shell]$
but i can't get the result according---echo ${PATH//:/'\n'} -e, and i have searched the Internet but no answer, so i send this e-mail to you for help, thank you for sparing your time and thank you for your answer!
Best Wishes
------------------------------------------
Wang bin
Addr: XUPT.Xi'an.Shaanxi.China
E-mail: bwang2009 <at> yeah.net
Zip/Postal Code: 710061
[Message part 2 (text/html, inline)]
This bug report was last modified 12 years and 128 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.