bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash-3.1.011 escaped character error


From: Andreas Schwab
Subject: Re: bash-3.1.011 escaped character error
Date: Thu, 23 Mar 2006 11:15:53 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

Mihai Barbos <mihai.barbos@eurospider.com> writes:

> When IFS is "\n" a single n at the end of a line is dropped.

IFS="\n"

is equivalent to

IFS=n

If you want to set IFS to a single newline character use either

IFS=$'\n'

or

IFS="
"

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]