From: Maksim Otstavnov <maksim@otstavnov.com> To: community@altlinux.ru Subject: Re: [Comm] bash trouble Date: Fri, 7 May 2004 22:18:25 +0400 Message-ID: <155963144.20040507221825@otstavnov.com> (raw) In-Reply-To: <20040507070048.GA10900@faa.lan.blok-caf.ru> Hello Andrew, Friday, May 07, 2004, 11:00:48 AM, you wrote: AF> приводится к виду, когда вместо несколько идущих пробелов остается только AF> один. Поскольу это имя файла - то сие неприемлемо. Вот для наглядности: AF> [faqa@faa 444]$ ./proba "/ttt/kkk/lll kkk" Нет, если цепочка заключена в кавычки, она интерпретируется (командой probe) как один аргумент... AF> /ttt/kkk/lll kkk AF> [faqa@faa 444]$ cat ./proba AF> #!/bin/bash AF> echo $1 ...А вот команда "echo" после раскрытия переменной "$1" получает уже, разумеется, два аргумента. В данном случае Вы можете просто поставить "$1" в своем скрипте в кавычки. -m.
prev parent reply other threads:[~2004-05-07 18:18 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-05-07 7:00 Andrew Fefilov 2004-05-07 7:12 ` Valery V. Inozemtsev 2004-05-07 7:38 ` Andrew Fefilov 2004-05-07 7:56 ` Valery V. Inozemtsev 2004-05-07 8:16 ` Andrew Fefilov 2004-05-07 9:31 ` Sergey Vlasov 2004-05-07 10:07 ` Andrew Fefilov 2004-05-07 10:19 ` Sergey Vlasov 2004-05-07 18:41 ` Valery V. Inozemtsev 2004-05-07 10:47 ` Mike Lykov 2004-05-07 18:18 ` Maksim Otstavnov [this message]
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=155963144.20040507221825@otstavnov.com \ --to=maksim@otstavnov.com \ --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