zoukankan      html  css  js  c++  java
  • Shell good example

    (1) Source code

    #! /bin/bash

    reference ()
         {
         pa=$"$1"
         echo $pa
         x=`eval "expr $pa "`
         echo $1=$x
         local aaa=$x
         bbb=$x
         eval "$1='test been modified'"
         return 1
         }

        param="test"
        echo $param " is test"

        reference param
        return_value=$?
        echo "return value is " $return_value
        echo $param " is not test"

        return_value=$?
        echo "return value is " $return_value

        echo "aaa = "$aaa
        echo "bbb = "$bbb

    (2)###############OUT PUT ###############

    root@sct-x42-05:/export/home/she_file# ./reference.ksh
    test  is test
    $param
    param=test
    return value is  1
    test been modified  is not test
    return value is  0
    aaa =
    bbb = test

  • 相关阅读:
    2017.1.10学习笔记
    v-model双向绑定
    指令之v-bind
    v-for列表渲染
    事件修饰符
    v-on
    指令v-text v-html
    vue起步
    Swoole HTTPServer
    SwooleTCP
  • 原文地址:https://www.cnblogs.com/Berryxiong/p/5627492.html
Copyright © 2011-2022 走看看