I start learn from this link.It's writed very good for newbies.

Richard Toohey wrote:
No worries, I'm a learner too!

On 15/10/2008, at 8:13 PM, Tomas Bodzar wrote:

Great explanation,especially this link :

http://developer.apple.com/documentation/OpenSource/Conceptual/ShellScripting/shell_scripts/chapter_2_section_10.html#//apple_ref/doc/uid/TP40004268-CH237-SW4

I'm not using some scripting a lot,just very primitive forms and can read some huge a little,but untill know I thougt about '[ ]' as a syntax and that if (while or other words) are part,which do "test",not '['

Thanks a lot and sorry for noise

Richard Toohey wrote:
There's more from Otto (and he does know what he is talking about!) here ...
http://marc.info/?l=openbsd-misc&m=120548451224075&w=2
On 15/10/2008, at 2:38 AM, Tomas Bodzar wrote:
I'm not so old :-D
A little magic for someone who is not good in Unix scripting and think,that [ is only mistake :-)

Thanks all for answer and more light on it for me

Almir Karic wrote:
On Tue, Oct 14, 2008 at 03:22:32PM +0200, Tomas Bodzar wrote:
Hi all,

have you same "problem" ? Look at $ls -lF /bin
There is a [* and test* ,both binaries do the same and cmp(1) says,that they are same.

Am I missing something or it's bug?
you are missing the lesson in history in unix shell scripting :-)
they are not doubled, they are hard links:
$ ls -i /bin/{test,[}   25985 /bin/[     25985 /bin/test

Reply via email to