samedi 29 novembre 2014

Why doesn't this pipe command work at this special bash script?


That script test.sh doesn't work after used pipe command. The result shows nothing. Why?



#!/bin/bash

fun=$( echo $1 )
echo "$fun"


commands are as follows,



$ echo 1 | ./test.sh


Aucun commentaire:

Enregistrer un commentaire