[pass] [passmenu]: Complicated way for first line?

René Neumann lists at necoro.eu
Sat Jan 9 10:37:02 CET 2016


Am 09.01.2016 um 00:02 schrieb René Neumann:
> Hi all,
> 
> I noticed that in the master branch, passmenu uses this rather
> complicated expression to get the first line:
> 	awk 'BEGIN{ORS=""} {print; exit}'
> 
> Is there a reason why this is not just 'head -n 1'? (Which would also be
> clearer, for those of us, where the awk-foo is a lil' rusty :)).
> 

Just found it out myself: The awk-snippet also removes the trailing newline.

- René


More information about the Password-Store mailing list