nodejitsu/forever — Issue #178: Leading hyphen in log file names
Author: bvmou
Created: 2011-11-28 22:18:39+00:00
State: open

Not sure if this is yet a violation of posix but probably not the right behavior (http://www.dwheeler.com/essays/fixing-unix-linux-filenames.html#dashes http://www.opengroup.org/austin/docs/austin_224.txt ).

Am not competent to suggest best fix but easy first pass that preserves approximately equivalent randomness is just:

// lib/forever.js line 325

options.uid = options.uid || utile.randomString(4).replace(/^\-/, 'H')

If you are in touch with the utile developer might be nice to have optional chars argument for cases like this.