mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-14 23:50:49 +02:00
commit bash-20150612 snapshot
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
THIS=alias2
|
||||
FN=$THIS.script
|
||||
|
||||
cat > $FN <<'EOF'
|
||||
#
|
||||
(echo "$1")
|
||||
EOF
|
||||
chmod u+x $FN
|
||||
|
||||
shopt -s expand_aliases
|
||||
|
||||
alias foo1='$FN one; source $FN two; source $FN three; $FN four'
|
||||
|
||||
alias foo2='$FN one
|
||||
source $FN two
|
||||
source $FN three
|
||||
$FN four'
|
||||
|
||||
foo1
|
||||
foo2
|
||||
|
||||
rm -f $FN
|
||||
Reference in New Issue
Block a user