I downloaded a open-source package and make
. But error happens when I run the admin
script trying to begin. I have found it was some problem about the path
.But there's still some problem confused me:
#! /bin/bash
# ionadmin - temporary wrapper script for .libs/ionadmin
# Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.7ubuntu1
#
# The ionadmin program cannot be directly executed until all the libtool
# libraries that it depends on are installed.
#
# This wrapper script should never be moved out of the build directory.
# If it is, it will not operate correctly.
# Sed substitution that helps us do robust quoting. It backslashifies
# metacharacters that are still active within double-quoted strings.
sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
fi
sed_quote_subst
: what a value it has? due to the existing of''
, some meta in''
are disabled . But I don't know which are them.#!/bin/bash
& zsh emulate: The first line declare that this script is running in bash. So, why there is a emulate, which is from zsh?alias -g '${1+"$@"}'='"$@"'
: I just input this on another bash and get the error:-g :invalid option
, I'm confused about the difference of zsh & bash, and how they work together. Could you explain it to me, please?
I'm a new hand for this , so this question may not be that "useful" to you. But your answer can help me better understand this world.