[PATCH] remove: without -f, avoid unnecessary-expense/issues with euidaccess

2010-03-06 Thread Jim Meyering
Thinking about how one should avoid euidaccess, I noticed that this corner of remove.c wasn't quite right: if we call faccessat and it fails, there's no point in trying with crufty, less-robust interfaces. While technically this is a correctness issue, the cases in which it makes a difference are

/bin/echo in ubuntu 9.04 Simplifield Chinese help doc translation bug report

2010-03-06 Thread littlebat
Under zh_CN.UTF-8 locale, execute /bin/echo --help in the terminal, the Simplifield Chinese tranlation of -n do not output the trailing newline is -n 不输出为岁的换行, this is a translation bug. It should be -n 不输出尾随的换行. -- littlebat dashing.m...@gmail.com

How to print the target of a symbolic link?

2010-03-06 Thread Peng Yu
'ls -l' shows the symbolic link and its target. I could parse the output. But I'm wondering whether there is a convenient command that only print the target if it is a symbolic link otherwise print nothing? Thank you for your help.

Re: How to print the target of a symbolic link?

2010-03-06 Thread Bob Proulx
Peng Yu wrote: 'ls -l' shows the symbolic link and its target. I could parse the output. But I'm wondering whether there is a convenient command that only print the target if it is a symbolic link otherwise print nothing? Thank you for your help. See the 'readlink' command. info coreutils