Re: Pipe ueber FIFO

Thomas Moritz <[email protected]> Mon, 11 Oct 2010 17:17:46 +0200
Newsgroups gmane.linux.suse.programming
Organization -
Message-ID <[email protected]>
Am Montag, 11. Oktober 2010 07:21:13 schrieb David Haller:

Hallo David,
 
> Die bash kann aber auch in dem Modus viel mehr als ne bourne shell,
> die ash ist da wesentlich näher dran. Beispiel:
> 
> $ /bin/sh -c 'a=1;echo $((a+1));'
> 2
> $ /bin/ash -c 'a=1;echo $((a+1));'
> a+1: not found

'busybox','zsh' und 'ksh' koennen's auch, nur eben die ash nicht.

ls -l /bin/sh
lrwxrwxrwx 1 root root  7 Jan  1  1970 /bin/sh -> busybox

/bin/sh -c 'a=1;echo $((a+1));'
2

MfG Th. Moritz