Re: tr -d [:space:] removes the letter 'p'

2004-10-17 Thread Jim Meyering
Aizer Danny-BDA023 <[EMAIL PROTECTED]> wrote: > I have run into a weird scenario: > > echo "asdfp asdfp a" | tr -d [:space:] > > returns: > asdf asdf a > > instead of: > asdfpasdfpa You need quotes to protect the brackets from being interpreted by your shell: $ echo "asdfp asdfp a" | tr -d '[:s

tr -d [:space:] removes the letter 'p'

2004-10-17 Thread Aizer Danny-BDA023
Hello, I have run into a weird scenario: echo "asdfp asdfp a" | tr -d [:space:] returns: asdf asdf a instead of: asdfpasdfpa This happens when I have a file called 'p' (zero-bytes) in my home directory. I run on RH9 (Shrike) Linux 2.4.20-8 with coreutils-4.5.3-19 and bash-2.05b-20. This has