From: php-coder <php-coder@ngs.ru> To: community@altlinux.ru Subject: [Comm] Функция в zsh в качестве алиаса Date: Wed, 1 Sep 2004 13:19:39 +0700 Message-ID: <1393136374.20040901131939@ngs.ru> (raw) 0000100101011110100100101::01.09.2004::0110001001001000100111100100010 Привет, Linuxоиды! Хочу в качестве alias'а использовать функцию. Правда, незнаю как это лучше сделать... Вот как я попытался (кусок из ~/.zshrc): finction insert_disk() { if [ -z $1 ]; then echo "Вы не указали номер диска!" > /dev/stderr return 1 else sudo mount -o loop /mnt/other/distrib/alt/alt-${1}.iso /mnt/cdrom fi } ... alias диск='insert_disk()' При вызове (диск 1, к примеру) молча отрабатывается, но диск не монтируется... Куда копать? Где править? THX -- С уважением, php-coder (mailto:php-coder[at]ngs[dot]ru) Registered Linux User #327594 ALT Linux Master 2.2 (kernel 2.4.27) 010010010010010001010101100::Linux RuleZz!::10001001000100010001000111
next reply other threads:[~2004-09-01 6:19 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-09-01 6:19 php-coder [this message] 2004-09-01 8:17 ` Andrey Rahmatullin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1393136374.20040901131939@ngs.ru \ --to=php-coder@ngs.ru \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git