Mantis Bug Tracker

View Issue Details Jump to Notes ] << ] >> ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000449incronpublic2010-05-21 00:572010-06-05 23:46
Reporterkolter 
Assigned Toluk 
PrioritynormalSeveritymajorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Summary0000449: incrontab(1) mangles comments in incrontab(5)
Descriptionincrontab(1) mangles comments in incrontab(5): it changes the first word on every comment line to "0". For example, if I run incrontab and create a file with the following comment lines:

# Only put 1 space between fields 2 and 3! Additional whitespace will be
# assumed to be part of field 3, causing the command to fail!

then incrontab -l shows that I have the following incrontab file:

# 0 put 1 space between fields 2 and 3! Additional whitespace will be
# 0 to be part of field 3, causing the command to fail!


To clarify, this doesn't just matter because of comments, although they're important. It also means that I can't temporarily disable a line by commenting it out-- if I do, then incrontab will replace the path entry by a 0.
Additional InformationThis bug report is a copy of http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563700 [^]
TagsNo tags attached.
Attached Files

- Relationships
related to 0000173assignedluk allow comments in incrontab files 

-  Notes
(0000444)
luk (administrator)
2010-02-10 20:49

This is strange behavior. It should currently remove all comments (although this is not optimal) as of 0000173. In any case the manipulation with incrontab files must be changed in the future versions.
(0000463)
luk (administrator)
2010-06-05 23:46

More things to consider:

1. If an invalid mask symbol is present it is currently removed.
2. If there is no symbol it is replace by zero ("0").

These things are undocumented and should be resolved or (at least) noted in the manual pages.

- Issue History
Date Modified Username Field Change
2010-01-31 23:32 kolter New Issue
2010-02-10 20:46 luk Status new => assigned
2010-02-10 20:46 luk Assigned To => luk
2010-02-10 20:47 luk Relationship added related to 0000173
2010-02-10 20:49 luk Note Added: 0000444
2010-06-05 23:46 luk Note Added: 0000463


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker