reopen 339136
retitle 339136 stat --format behavior change with default newline
thanks

Hi,

I've noticed that it's also affecting cowdancer.
I'm planning on getting a workaround and fixing it in 0.7.

However, from an upstream software POV, this is 
a nightmare.
I'll need to check for stat version before giving it 
a format string, possibly by checking it in configure.ac

Also, as a sysadmin, this means that I cannot reuse my scripts
across sarge and sid.



Is it possible to get some kind of compatibility option instated?



Older (sarge system):
$ stat . --format "%d\n"
2049\n
$ stat . --format "%d"
2049
$ stat * --format "%d %i"
2049 212424
2049 212508
2049 212509
2049 246381
$ stat * --format "%d %i\n"
2049 212424\n
2049 212508\n
2049 212509\n
2049 246381\n
stat * --format "%d %i:"|tr : '\n' | head
2054 21186142
2054 21186136
2054 7831563
2054 7831564
2054 7831565
2054 21186194
2054 21185736
2054 21186192
2054 21186146
2054 21186147


Newer(current sid):
$ stat . --format "%d\n"
2054
$ stat . --format "%d"
2054(without newline)
$ stat * --format "%d %i"
2054 211861422054 211861362054 78315632054 78315642054 78315652054 211861942054 
211857362054 211861922054 211861462054 211861472054 211861372054 78315662054 
211859712054 211861492054 211861322054 21186166
$ stat * --format "%d %i\n"
2054 21186142
2054 21186136
2054 7831563
2054 7831564
$ stat * --format "%d %i:"|tr : '\n' | head
2049 212424

2049 212508

2049 212509

2049 246381

2049 246831



regards,
        junichi
-- 
[EMAIL PROTECTED],netfort.gr.jp}   Debian Project


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to