Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1
tag 23367 notabug
close 23367
stop
On 04/25/2016 07:34 AM, Selva Kumar wrote:
Hello Sir,
May I know how to debug ls related commands?
You failed to mention what exactly you want to achieve, or what
your problem currently is. Therefore, I can only give rather
general advices.
E.g. if strange file names, i.e., those with newlines, starting with
a hyphen "-", or shell wildcards etc., are causing problems, then
I'd simply put echo infront of the command to see what's really
executed:
FILES="some str*ange -files"
echo ls $FILES
To see how ls(1) is traversing the file system, you could use
tools like ltrace and strace.
Finally, to really debug the program, you have to fire up a debugger
like gdb.
As you didn't mention any problem in our programs, I'm marking this
as not a bug in our bug tracker, and close this issue.
Your signature is offending common standards (e.g. no "-- " separator),
attaching a file just for a corporate image is completely unneccessary,
plus you cannot enforce a disclaimer on public mailing lists.
Have a nice day,
Berny