On 2014/07/10 09:50, Steffen Schuler wrote: > >Synopsis: "cut -f 2,1" doesn't switch fields 1 and 2. > >Category: Serious bug in base system. > >Environment: > System : OpenBSD 5.4 > Details : OpenBSD 5.4 (GENERIC.MP) #41: Tue Jul 30 15:30:02 MDT 2013 > > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > Architecture: OpenBSD.amd64 > Machine : amd64 > >Description: > > The following command > > $ echo a,b | cut -d , -f 2,1 > prints > > a,b > > instead of > > b,a > > as the manual page of cut(1) tells.
It would be a serious bug if cut(1) did output "b,a" for this command. Maybe it's a minor documentation omission, but the manual page does not talk about order of the output fields at all.
