mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-11-17 20:50:02 +01:00
commit bash-20150612 snapshot
This commit is contained in:
1 parent
1573ba78f3
commit
bd6a350e7e
20 files changed
+220
-53
No files matched your search
@@ -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