[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: export in posix mode
From: |
Bob Proulx |
Subject: |
Re: export in posix mode |
Date: |
Wed, 27 Feb 2013 15:17:00 -0700 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Chet Ramey wrote:
> Keep in mind that posh is overly strict in some areas (e.g., it throws
> an error on `exit 1'). It may not be useful in isolation.
As I did mention I have found that posh is somewhat less than useful
in Real Life. But you say it throws an error on exit 1?
$ cat >/tmp/trial <<'EOF'
#!/bin/posh
echo "Hello from posh"
exit 1
EOF
$ chmod a+x /tmp/trial
$ /tmp/trial
Hello from posh
$ echo $?
1
I see no error when using 'exit 1'. Other than the expected exit
code. What am I missing?
Bob
- export in posix mode, James Mason, 2013/02/27
- Re: export in posix mode, Eric Blake, 2013/02/27
- Re: export in posix mode, Chet Ramey, 2013/02/27
- Re: export in posix mode,
Bob Proulx <=
- Re: export in posix mode, Chet Ramey, 2013/02/27
- Re: export in posix mode, Eric Blake, 2013/02/27
- Re: export in posix mode, Bob Proulx, 2013/02/27