X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; q=dns; s=default; b=A2T01V7DNj+382hz7yqHvWXEMpCKe SyKg+8veECY8OKDDWOnlfaTxzkV9tMl9ZklannAD0kKwmzDSlpEWhbp6Hcdx0m4D 4p+qnIWuC+rH0UoR+NXhexHXrpAKDWDKh2+AtqESa6+QFHB55NewqqaQvk4WiRxt B3HrYuR7dtB4MY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; s=default; bh=hfJMqyYgrtaI0DmXxtEwuviE95Y=; b=Wnq Y5evV6KZ+F3AzRckkLRmXh6bBKWoiFsbkCMOzwiI0RUXR0AMvbuZWOyAKbUFbD3R 8HIHphmP4LXW+lZyISgqUuQE4mMrSNIKfZNRWWf6Q0b4w2RYTJ/UB9zox3hfsOvW q6boIpCpR3QnP3vrFx4Z+vQ/5wk+fjSY3w+evC38= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Domain X-HELO: mail-lf0-f43.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=gL80WkYoCEBeaItdFviZtmBtoSqzIbYlzKMh39XS/xg=; b=k5Q/YrZemkZJZ8toqtnfI+9XY52b9QpSmTVtNPACbbB/706/ZGUSw3IGDQYFCDH2DJ OPgakC28eXwkPxolIlZZ/uip/lmw7RJcBu9OYN7GVn1TcyzkamCZ6TQ3zjVZOrSwjc4/ PfXH3zmhNVGDuIaVhRrBBRLQddapDQXyuUCFer2p6+YOOyoPaxc3kjvJfPBk+DZIHFbI SeYV2iLTG4Amz7I4x91FyLRcFULvPn66sfiSUnzdfiPokK/5nqubneAwZLWNa66Hbkuz +YGEviZeN6wrH72/hYghHKhBVCxFNJnQ9kpGSPFlFS2qwOpYPwJaAUdw9O4X/gGIY68o JVnQ== X-Gm-Message-State: AEkoouuyWcdQ75UzNVuBtMhiFPghM51NkiRaLhsoNFUGb1FdTxltl8ciSr/bwv2qmT6MI8d6sPLVCG2q5mQkAQ== X-Received: by 10.25.38.149 with SMTP id m143mr3599990lfm.107.1471714960410; Sat, 20 Aug 2016 10:42:40 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Morten_Kj=C3=A6rulff?= Date: Sat, 20 Aug 2016 19:42:20 +0200 Message-ID: Subject: #!/bin/sh and #!/bin/bash is not the same To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Hi, I thought that #!/bin/sh in a script would be a bash, but it seems not to be - or what am I doing wrong? vp01mkf AT DX305 ~/bin $ cat ./tsh.sh #!/bin/sh cat < <(pwd) vp01mkf AT DX305 ~/bin $ ./tsh.sh ./tsh.sh: line 3: syntax error near unexpected token `<' ./tsh.sh: line 3: `cat < <(pwd)' vp01mkf AT DX305 ~/bin $ cat ./tbash.sh #!/bin/bash cat < <(pwd) vp01mkf AT DX305 ~/bin $ ./tbash.sh /home/vp01mkf/bin vp01mkf AT DX305 ~/bin $ diff tsh.sh tbash.sh 1c1 < #!/bin/sh --- > #!/bin/bash vp01mkf AT DX305 ~/bin $ ls -l /bin/sh /bin/bash -rwxr-xr-x 1 vp01mkf Domain Users 757277 Aug 6 14:56 /bin/bash -rwxr-xr-x 1 vp01mkf Domain Users 757277 Aug 6 14:56 /bin/sh vp01mkf AT DX305 ~/bin $ /Morten -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple