From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 606 invoked by alias); 21 Apr 2016 06:57:50 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21467 Received: (qmail 15745 invoked from network); 21 Apr 2016 06:57:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=wcuf6j85ZPffW9lzo+8dfHw9oTYSTNmKjQhk0lI9u9k=; b=c0VZ57FWe3nce6DDvKNJetm5T49sCL5UKmQWfUdNNOS8HtY+BFB51UPlbzLw9PHjOd MVLh6FCvAox1/35KRPDYv/6X4wJRIt9UAvPvyi34DS17SoyTDOB3+HgylDp3aFLUy4eF PH7P2Nd6Kp/0DLo883VuAiiJxxpKNLEtMIAwDTV2KDlCPCvOfM74H4oBt4RTz9R7PpSb aKBe1bQ6iNQ1YnYNLC+28drRD0wv5FoMXB4Q8GhzvLKa6VnoqG4iKkqyTdYBBtidH4qX 5fA6BhRPyKl/lGzR+2SIjslblA+zRpL0KYsMmSWyjRSC3klQYb5L0JofYV12JWpA/Dg3 wDCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=wcuf6j85ZPffW9lzo+8dfHw9oTYSTNmKjQhk0lI9u9k=; b=YXw3gHB+Cp8dZX6SqUaGkknVYBAPIxzDcte1J4oecIq+Jqjnqqn8cmrcjYRnuUANmT LeBZnburHuIpZMJRcKgUjQ7S2NjwaTvb9isFYvbzirz6ztCDlo+uQ08AnyIc2gRafuCH qVJGlno/pB7cJZjIurM2q5fDvbPvga8b61orLDS1sRe8qfk1trjkyVwZWiYTeL+dTVwn iVEQox0B3nMsXiwMyBvPR+UhGqpO4GEG6/WA5C3nOIu+VK5BuBPqqx4EbwQEMlfU7g3z YkvOaVHqJLAk6imWnSNNAjVKkkMcXbwuHtxMC+scx3C3Q1GT5OH1h/r14KK3RtiFFJJz CMbg== X-Gm-Message-State: AOPr4FV7bOVwCC3lHy4lbVCZcC1AYjU9gcXFFj3P71nd0T9rb36ZMki77YPdjwj9vs9FZQ== X-Received: by 10.98.29.137 with SMTP id d131mr466235pfd.2.1461221866069; Wed, 20 Apr 2016 23:57:46 -0700 (PDT) From: Bart Schaefer Message-Id: <160420235800.ZM15082@torch.brasslantern.com> Date: Wed, 20 Apr 2016 23:58:00 -0700 In-Reply-To: <87zisneh10.fsf@student.uu.se> Comments: In reply to Emanuel Berg "Re: virtual files?" (Apr 21, 4:12am) References: <8760vdrt5y.fsf@student.uu.se> <87zisneh10.fsf@student.uu.se> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: virtual files? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 21, 4:12am, Emanuel Berg wrote: } } What is the colon in =(:) - an "anonymous function } qualifier"? The syntax =(command) runs command and captures its output in a temp file, then substitutes the name of the temp file; the file itself is removed as soon as the current command finishes. So echo =(echo foo) will print something like /tmp/zshhKNk2F and cat =(echo foo) will print foo. Thus () { cat $1 } =(echo foo) also prints foo. The ":" command is just a quick built-in no-op that produces no output, so that the temporary file created by =(:) will be empty.