- Added legacy warnings about use of fg: or bg:.
This commit is contained in:
Paul Beckingham 2011-08-27 14:29:08 -04:00
parent 1c98544380
commit ab931b6af2
3 changed files with 7 additions and 4 deletions

View file

@ -469,6 +469,10 @@ void Command::modify_task (
// By default, just add it.
else
task.set (name, result);
// Legacy checks.
if (name == "fg" || name == "bg")
context.footnote (format (STRING_LEGACY_FEATURE, name));
}
else
throw format (STRING_CMD_ADD_BAD_ATTRIBUTE, name);