Re: [PATCH 11/12] fsmonitor: test updates

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

 



On Sun, Oct 09 2022, Eric DeCosta via GitGitGadget wrote:

> From: Eric DeCosta <edecosta@xxxxxxxxxxxxx>

> +wait_for_update () {
> +	func=$1 &&
> +	file=$2 &&
> +	sz=$(wc -c < "$file") &&
> +	last=0 &&
> +	$func &&

Odd not to quote "$func" here, but anyway...

> +rename_directory () {
> +	mv dirtorename dirrenamed
> +}

...uh, we need to wrap "mv"? Why?


> -	mv dirtorename dirrenamed &&
> +	wait_for_update rename_directory "$PWD/.git/trace" &&

Just to get around some quoting issue here?



[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