* Context for multiline commands
@ 2006-02-10 19:59 James F. Hranicky
2006-02-10 20:07 ` Dan Nelson
2006-02-10 20:11 ` Christian Schneider
0 siblings, 2 replies; 4+ messages in thread
From: James F. Hranicky @ 2006-02-10 19:59 UTC (permalink / raw)
To: zsh-users
The version of zsh I have installed on my Solaris machines keeps
the context for multiline commands to help me remember where I am:
for i in * ; do
for> if [ "$i" = "0" ] ; then
for then>
However, on my SuSE 9.3 machines this seems to be disabled
for i in * ; do
> if [ "$i" = "0" ] ; then
>
anyone know what the directive is to enable this behavior?
----------------------------------------------------------------------
| Jim Hranicky, Senior SysAdmin UF/CISE Department |
| E314D CSE Building Phone (352) 392-1499 |
| jfh@cise.ufl.edu http://www.cise.ufl.edu/~jfh |
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Context for multiline commands
2006-02-10 19:59 Context for multiline commands James F. Hranicky
@ 2006-02-10 20:07 ` Dan Nelson
2006-02-10 20:12 ` James F. Hranicky
2006-02-10 20:11 ` Christian Schneider
1 sibling, 1 reply; 4+ messages in thread
From: Dan Nelson @ 2006-02-10 20:07 UTC (permalink / raw)
To: James F. Hranicky; +Cc: zsh-users
In the last episode (Feb 10), James F. Hranicky said:
> The version of zsh I have installed on my Solaris machines keeps
> the context for multiline commands to help me remember where I am:
>
> for i in * ; do
> for> if [ "$i" = "0" ] ; then
> for then>
>
> However, on my SuSE 9.3 machines this seems to be disabled
>
> for i in * ; do
> > if [ "$i" = "0" ] ; then
> >
>
> anyone know what the directive is to enable this behavior?
Sounds like your SuSE box is resetting $PS2 in a startup script
somewhere. It defaults to '%_> ' .
--
Dan Nelson
dnelson@allantgroup.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Context for multiline commands
2006-02-10 19:59 Context for multiline commands James F. Hranicky
2006-02-10 20:07 ` Dan Nelson
@ 2006-02-10 20:11 ` Christian Schneider
1 sibling, 0 replies; 4+ messages in thread
From: Christian Schneider @ 2006-02-10 20:11 UTC (permalink / raw)
To: zsh-users
* James F. Hranicky <jfh@cise.ufl.edu> typed:
> The version of zsh I have installed on my Solaris machines keeps
> the context for multiline commands to help me remember where I am:
>
> for i in * ; do
> for> if [ "$i" = "0" ] ; then
> for then>
>
> However, on my SuSE 9.3 machines this seems to be disabled
>
> for i in * ; do
> > if [ "$i" = "0" ] ; then
> >
>
> anyone know what the directive is to enable this behavior?
That's ``PS2''; default is "%_> "
,----
| painless% echo $PS2
| %_>
| painless% for i in {1..2} ; do
| for> echo $i
| for> done
| 1
| 2
| painless% PS2="> "
| painless% for i in {1..2} ; do
| > echo $i
| > done
| 1
| 2
| painless%
`----
--
Feel free to contact me (flames about my english and the useless of this
driver will be redirected to /dev/null, oh no, it's full...).
-- Michael Beck, describing the PC-speaker sound device
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Context for multiline commands
2006-02-10 20:07 ` Dan Nelson
@ 2006-02-10 20:12 ` James F. Hranicky
0 siblings, 0 replies; 4+ messages in thread
From: James F. Hranicky @ 2006-02-10 20:12 UTC (permalink / raw)
To: Dan Nelson; +Cc: zsh-users
On Friday 10 February 2006 15:07, Dan Nelson wrote:
> Sounds like your SuSE box is resetting $PS2 in a startup script
> somewhere. It defaults to '%_> ' .
Ah, it's getting set in /etc/bash.bashrc (still the default shell).
Thanks!
Jim
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-02-10 20:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-10 19:59 Context for multiline commands James F. Hranicky
2006-02-10 20:07 ` Dan Nelson
2006-02-10 20:12 ` James F. Hranicky
2006-02-10 20:11 ` Christian Schneider
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).