On Mon, Oct 09, 2006 at 11:54:38AM +0200, Axel Liljencrantz wrote: > If you did that, you'd have to somehow handle if the user writes out a > comment with a timestamp inside a command. The only real solution I > can see is something like what here-files use, namely using a magic > end-of-block marker, that is also given before each item. Something > like this:
wouldn't it be enough if you only do this for strings? and then use " as the marker? in other words: # timestamp multiline\ command\ with "multi line string" the only problem i could see with that is if someone writes a single line command with a single quote: awk -F" foo but for that to work the quote would have to be escaped anyways: awk -F\" foo greetings, martin. -- cooperative communication with sTeam - caudium, pike, roxen and unix offering: programming, training and administration - anywhere in the world -- pike programmer travelling and working in europe open-steam.org unix system- bahai.or.at iaeste.(tuwien.ac|or).at administrator (caudium|gotpike).org is.schon.org Martin Bähr http://www.iaeste.or.at/~mbaehr/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
