Re: buildworld breakage during make depend at usr.bin/kdump

2001-11-01 Thread Erik Trulsson

On Thu, Nov 01, 2001 at 01:36:24PM +0100, Guido van Rooij wrote:
 On Thu, Nov 01, 2001 at 01:29:50PM +0100, Dag-Erling Smorgrav wrote:
  Guido van Rooij [EMAIL PROTECTED] writes:
   May I aks which shell you are using?
  
  Zsh.
 
 I am starting to wonder which sh is broken.

Neither really. First note that zsh doesn't claim to be fully compatible with
/bin/sh (or POSIX-compliant for that matter.)  Secondly, zsh has a lot
of options defining how it works.  In this case the option
SH_WORD_SPLIT defines which behaviour will be used.  If this option is
set it will replace the newline with a space.  If it is not set (which
is the default) the newline will be retained as it is.

 
 Btw there is a difference between sh and {t,}csh: in the sh case the newline
 is replaced with 1 space. In the case of the 2 others, there are 2 spaces.



-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: buildworld breakage during make depend at usr.bin/kdump

2001-11-01 Thread Eugene L. Vorokov

 
 David O'Brien [EMAIL PROTECTED] writes:
  because `echo' nicely removes \n's from env vars when it prints them.
 
 des@des ~% foo='bar
 quote baz'
 des@des ~% echo $foo
 bar
 baz
 des@des ~% /bin/echo $foo
 bar
 baz
 

Uhmz ?

bash-2.05# foo='bar
 baz'
bash-2.05# echo $foo
bar baz
bash-2.05# /bin/echo $foo
bar baz
bash-2.05# set |grep foo
foo=$'bar\nbaz'
bash-2.05# 

Regards,
Eugene


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: buildworld breakage during make depend at usr.bin/kdump

2001-11-01 Thread Dag-Erling Smorgrav

Eugene L. Vorokov [EMAIL PROTECTED] writes:
 Uhmz ?

Your shell is broken.

DES
-- 
Dag-Erling Smorgrav - [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: buildworld breakage during make depend at usr.bin/kdump

2001-11-01 Thread Guido van Rooij

On Thu, Nov 01, 2001 at 12:43:21PM +0100, Dag-Erling Smorgrav wrote:
 Eugene L. Vorokov [EMAIL PROTECTED] writes:
  Uhmz ?
 
 Your shell is broken.
 

Just tried it with  /bin/sh, /bin/csh and /bin/tcsh and they
all remove the newlines. That is a lot of broken shells.

May I aks which shell you are using?

-Guido

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: buildworld breakage during make depend at usr.bin/kdump

2001-11-01 Thread Dag-Erling Smorgrav

Guido van Rooij [EMAIL PROTECTED] writes:
 May I aks which shell you are using?

Zsh.

DES
-- 
Dag-Erling Smorgrav - [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: buildworld breakage during make depend at usr.bin/kdump

2001-11-01 Thread Guido van Rooij

On Thu, Nov 01, 2001 at 01:29:50PM +0100, Dag-Erling Smorgrav wrote:
 Guido van Rooij [EMAIL PROTECTED] writes:
  May I aks which shell you are using?
 
 Zsh.

I am starting to wonder which sh is broken.

Btw there is a difference between sh and {t,}csh: in the sh case the newline
is replaced with 1 space. In the case of the 2 others, there are 2 spaces.

-Guido

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: buildworld breakage during make depend at usr.bin/kdump

2001-11-01 Thread Peter Pentchev

On Thu, Nov 01, 2001 at 01:36:24PM +0100, Guido van Rooij wrote:
 On Thu, Nov 01, 2001 at 01:29:50PM +0100, Dag-Erling Smorgrav wrote:
  Guido van Rooij [EMAIL PROTECTED] writes:
   May I aks which shell you are using?
  
  Zsh.
 
 I am starting to wonder which sh is broken.
 
 Btw there is a difference between sh and {t,}csh: in the sh case the newline
 is replaced with 1 space. In the case of the 2 others, there are 2 spaces.

And this is not an echo issue, it is a shell variable expansion issue.
Witness (using /bin/sh) :

$ foo='bar
 baz'
$ echo $foo
bar baz
$ /bin/echo $foo
bar baz
$ echo $foo
bar
baz
$ /bin/echo $foo
bar
baz
$

G'luck,
Peter

-- 
If I were you, who would be reading this sentence?

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message