Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2014 18:24:03 -0500
From:      Shayan Pooya <>
To:        Bernt Hansson <>
Subject:   Re: Field delimiter in sort program in freebsd
Message-ID:  <>
In-Reply-To: <>
References:  <> <> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
I took a look at the source code of sort and saw this condition:

                                if (sort_opts_vals.field_sep == WEOF) {
                                        errno = EINVAL;
                                        err(2, NULL);

Removing this condition and remaking sort fixes the issue (at least I can
use bash to give 0xff to the sort program, no luck with other shells

Using \xff as the record separator makes sense for binary files. Any idea
why there is such a condition in the sort program?


Want to link to this message? Use this URL: <>