Re: [PATCH v5 1/2] cat-file: add mailmap support to -s option

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

 



Christian Couder <christian.couder@xxxxxxxxx> writes:

> Yeah, right. So I would suggest the following:
>
>      git cat-file commit HEAD >commit.out &&
>      wc -c <commit.out | sed -e 's/^ *//' >expect &&

You should not use sed for things like that.

	echo $(wc -c <file)

should suffice to strip away unwanted $IFS around the output
(Note. lack of any quotihg around $() is the key).



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux