Skip to content

Commit

Permalink
silence error from zsh when datafile is created
Browse files Browse the repository at this point in the history
  • Loading branch information
rupa committed Jul 21, 2016
1 parent 335717e commit 78f0d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion z.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ _z() {

# maintain the data file
local tempfile="$datafile.$RANDOM"
awk < <( _z_dirs ) -v path="$*" -v now="$(date +%s)" -F"|" '
awk < <(_z_dirs 2>/dev/null) -v path="$*" -v now="$(date +%s)" -F"|" '
BEGIN {
rank[path] = 1
time[path] = now
Expand Down

0 comments on commit 78f0d97

Please sign in to comment.