Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Apr 2016 20:29:14 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r297528 - head/sbin/devd
Message-ID:  <201604032029.u33KTETH062544@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sun Apr  3 20:29:14 2016
New Revision: 297528
URL: https://svnweb.freebsd.org/changeset/base/297528

Log:
  Make $_ match the docs.

Modified:
  head/sbin/devd/devd.cc

Modified: head/sbin/devd/devd.cc
==============================================================================
--- head/sbin/devd/devd.cc	Sun Apr  3 16:38:15 2016	(r297527)
+++ head/sbin/devd/devd.cc	Sun Apr  3 20:29:14 2016	(r297528)
@@ -796,7 +796,7 @@ process_event(char *buffer)
 	// $* is the entire line
 	cfg.set_variable("*", buffer - 1);
 	// $_ is the entire line without the initial character
-	cfg.set_variable("_", buffer - 1);
+	cfg.set_variable("_", buffer);
 	// No match doesn't have a device, and the format is a little
 	// different, so handle it separately.
 	switch (type) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604032029.u33KTETH062544>